Forum Moderators: open
Attempt number two was to use an
onLoad="window.open('win.html','name','fullscreen')"
comand in conjunction with a self.close() command to open the new window and close the current. This proved slightly annoying because the window will prompt you because the it is trying to close itself.
Attempt number three and focus of my post is to use a js function to open the new window and focus and it instead of the current. It looks like this:
<html>
<head>
</head>
<script type="text/javascript" language="JavaScript">
<!--
function home() {
var index = window.open('indexh.html', 'index', 'fullscreen')
index.focus()
}
-->
</script>
<body bgcolor=black onLoad="home()">
</body>
</html>
Im new to webdesign and im sure there is some simple answer stareing me in the face.
Baxter
<html>
<head>
<script>
function closeMe(){
window.open('','_self','');
this.focus();
window.opener = this;
self.close();
}
</script>
</head>
<body onload="javascript:closeMe()">
Close me!
</body>
</html>
Also, what browser are you using that
window.open(theURL, '', 'fullscreen=yes, scrollbars=auto');