Forum Moderators: open
Here's some code I used to make a pop-up window true fullscreen upon clicking on a link in Netscape.
function doit() {
if (document.layers) {
netscape.security.PrivilegeManager.enablePrivilege('UniversalBrowserWrite');
window.open('nocrome.htm','newwin','titlebar=no,width=' + window.screen.availWidth+',height='+window.screen.availWidth+',screenX=0,screenY=0')
}
}
The problem is, it works fine offline, but when I upload it to the server and try it out, nothing happens when I click on the link.
This is what I used in the link tag:
<a href="javascript:doit();">
Can anyone PLEASE help me with this?!? Thanks!