Hello fellow members,
could any one suggest why the following code works in IE but not in FF. Basically,
I have a set of subject titles that, when moused over, create a popup window that displays a graphic picture; each picture is a slightly different dimension so I have to pass the picture height and width as parameters to the popup function. Here is the gest of the function?I am using DTD ‘transitional’ which I only mention because I suspect this might have something to do with my problem):
<script type=”text/JavaScript”>
<!–
var item_view;
function testpop(win_link,win_size,side_x,side_y)
{
item_view=window.open(win_link,”win_name”,win_size,”left=”+side_x,”top=”+side_y);
window.item_view.moveTo(side_x,side_y);
if(item_view =null)
{
document.write(“Unable to find file.”);
}
}
function shut_win(win_link,win_size)
{
var item_view=open(win_link,”win_name”,win_size)
if(item_view && !item_view.closed)
{
item_view.close();
}
}
//–>
</script>