Results 1 to 5 of 5
-
March 22nd, 2004, 09:48 AM #1
broswer manipulation with javascript?!?!
hi all
i have a main.html, what i want to know if its possible is when the user enters main.html can a javascript popup automatically come up?......and when that happens close main.html automatically??
thnx in advance
-
March 23rd, 2004, 08:24 AM #2
anyone wanna shed a bit of light over here??
-
March 23rd, 2004, 01:46 PM #3
Hmn ... I'm a bit rusty with JavaScript, so someone might need to have to correct this ..
PHP Code:<script language="JavaScript">
function doClose(){
alert("Hey, get out !");
self.opener = null;
window.close(self);
}
</script>
<body onLoad="doClose()">
//...
Wait, what?
-
March 24th, 2004, 03:08 PM #4
where do i apply this code?
thnx
BigBalroo
-
March 24th, 2004, 03:29 PM #5
The script goes in the head section of your HTML file, and the onLoad goes in the body tag. I don't know if it'll work though ...
Wait, what?

Reply With Quote
Bookmarks