PDA

View Full Version : manipulating Current browser settings


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.

glenngv
12-17-2002, 08:44 AM
Sorry, you CAN'T.

MarcelG
12-17-2002, 10:50 AM
there is a way to solve this in a diffrent maner but then i need to be able to send a Yes or No to a Windows dialoge box can this be done ?

glenngv
12-17-2002, 10:59 AM
Use HTA (http://msdn.microsoft.com/workshop/author/hta/overview/htaoverview.asp)

MarcelG
12-17-2002, 11:44 AM
Glenn you saved the day.

Gratefull for your help....