B
bobstead
Hi Have tweaked a first script together which works fine in IE but
fails in FF/Opera would be grateful for any advise.
Script is as follows:
<script language="JavaScript" type="text/javascript">
function genopenpopup(width,height)
{
if (!width)
width = 900
if (!height)
height = 750
var popurl=event.srcElement.ref
winpops = window.open(popurl,"","width=" + width + ",height=" + height
+ ",scrollbars,resizable,")
if (winpops)
winpops.focus()
}
</script>
Each window coded thus:
<A href="#null" onclick="genopenpopup()" ref="catchments.pdf"
onmouseover="style.cursor='hand'">
9 Secondary School Catchments.</a></td></tr>
If () not specified window set at default of 900x750
Grateful for any feedback
Bob
fails in FF/Opera would be grateful for any advise.
Script is as follows:
<script language="JavaScript" type="text/javascript">
function genopenpopup(width,height)
{
if (!width)
width = 900
if (!height)
height = 750
var popurl=event.srcElement.ref
winpops = window.open(popurl,"","width=" + width + ",height=" + height
+ ",scrollbars,resizable,")
if (winpops)
winpops.focus()
}
</script>
Each window coded thus:
<A href="#null" onclick="genopenpopup()" ref="catchments.pdf"
onmouseover="style.cursor='hand'">
9 Secondary School Catchments.</a></td></tr>
If () not specified window set at default of 900x750
Grateful for any feedback
Bob