Hi guys,
Ive been using the script for the centred pop-up window from the kirupa tutorial and it works fine in Firefox, but IE is picking up a Javascript error, and hence not “popping open” the window. I can’t seem to see the problem for the life of me. Could someone help me spot the error?
Here’s a snippet of my function which calls the JS
Movieclip.prototype.openWinCentre = function (url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {
//address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable
getURL("javascript:window.open('"+url+"','"+winName+"','"+"width="+w+",height="+h+",toolbar="+toolbar+",location="+location+",directories="+directories+",status="+status+",menubar="+menubar+",scrollbars="+scrollbars+",resizable="+resizable+",top='+((screen.height/2)-("+h/2+"))+',left='+((screen.width/2)-("+w/2+"))+'"+"');void(0);");
}
Thanks in advance!