MarcelG
12-17-2002, 08:40 AM
Is it possible to manipulate the current browser window with java script ?
This is the code that i use to start a new browser with the settings i want. I would like to do this to the current window instead of a new window ...
<html>
<head>
<script language="JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
windowprops = "top=0,left=0,resizable=yes" + ",width=" + screen.width + ",height=" + screen.height;
window.open(theURL,"newWindow",windowprops);
}
//-->
</script>
<body onload="MM_openBrWindow('http://www.google.com')"
</body>
</head>
</html>
Thanks for al the help.
This is the code that i use to start a new browser with the settings i want. I would like to do this to the current window instead of a new window ...
<html>
<head>
<script language="JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
windowprops = "top=0,left=0,resizable=yes" + ",width=" + screen.width + ",height=" + screen.height;
window.open(theURL,"newWindow",windowprops);
}
//-->
</script>
<body onload="MM_openBrWindow('http://www.google.com')"
</body>
</head>
</html>
Thanks for al the help.