help with code please - code inside

They have: 5 posts

Joined: Sep 1999

as far as i know this should open www.nfl.com when someone closes the window, but it is not working,
my eventual purpose is to have it so that it is impossible to close the original window by linking to it, where i link to www.nfl.com.
i have set up a network whose permissions make it relatively difficult to reopen netscape after it has been closed, i am trying this as a workaround
any input will be appreciated

<script language="JavaScript">
<!--
function NoClose(){
var pag = "http://www.nfl.com";
windowprops = "height=800,width=600,location=no,"
+ "scrollbar=no,menubar=no,toolbar=no,resizable=no";
window.open(page,"noname",windowprops);
}

function popupPage(){
var page = "http://www.yahoo.com";
windowprops = "height=500,width=500,location=yes,"
+ "scrollbars=yes,menubars=yes,toolbar=yes,resizable=yes";

window.open(page, "Popup", windowprops);
}
-->
</script>
</head>

<body onUnload="NoClose()" onLoad="popupPage()">

etc...etc...etc....html

They have: 5 posts

Joined: Sep 1999

ok duh
i figured out that i was calling "page" under NoClose()
instead of "pag"

but i still have another question, is it possible to link to an html page on my desktop (win98)where i linked www.nfl.com above, i can get this to work for IE but not for netscape.
once again any help would be appreciated.

They have: 5,633 posts

Joined: Jan 1970

Why would you want to make it impossible to close the window? I find these type of scripts most annoying and I consider them to be equivalent to spamming. This is the sort of thing you find at warez sites and porn sites - do you want your site to be put in that category?

----------
[email protected]
http://go.to/hass

They have: 5 posts

Joined: Sep 1999

like i mentioned
it is for an internal lan network with restricted permissions, rest assured i am not an owner of a porn site

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.