Hi folks,
This function works great in FF, but in IE i get a runtime error on line 16 javascript error.... I don't get why..
=====================================================
<script language="JavaScript"><!--
function newWindow(imagename, text) {
var newVar = imagename + "xxxxxx" + text;
msgWindow=open('imagepopup.asp',newVar,'resizable=no,width=650,height=570,scrollbars=yes');
if (msgWindow.opener == null) msgWindow.opener = self;
}
//--></script>
=====================================================
For example, I target this function using this link:
javascript:newWindow(document.getElementById("image5").src, "text description")
Hope anyone know what's wrong.. Line 16 is the line 'msgWindow.... etc.'.
Regards,
roel
This function works great in FF, but in IE i get a runtime error on line 16 javascript error.... I don't get why..
=====================================================
<script language="JavaScript"><!--
function newWindow(imagename, text) {
var newVar = imagename + "xxxxxx" + text;
msgWindow=open('imagepopup.asp',newVar,'resizable=no,width=650,height=570,scrollbars=yes');
if (msgWindow.opener == null) msgWindow.opener = self;
}
//--></script>
=====================================================
For example, I target this function using this link:
javascript:newWindow(document.getElementById("image5").src, "text description")
Hope anyone know what's wrong.. Line 16 is the line 'msgWindow.... etc.'.
Regards,
roel