Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to set the window properties of initial web page 1

Status
Not open for further replies.

brettz

Programmer
Jul 18, 2002
42
US
Is it possible to set the properties of a web page when it is the first web page accessed. I know how to do this when calling a web page from another web page with the window.open method and properties. Can the window properties be set when a web page is initially opened from the browser? I want to eliminate the scroll and toolbars and also size the window down when the user first enters the page.

Thanks,

-Brett
 
I do not believe so due to the fact that before the page is read those properties are already established - you would have to find a work around (ie pop a new window the close the opener or something like that)

[conehead]
 
You cannot remove / add toolbars to a page, but you can resize it on load. Here is an example:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "[URL unfurl="true"]http://www.w3.org/TR/html4/strict.dtd">[/URL]

<html>
<head>
<title>new document</title>
</head>

<body onload="window.resizeTo(200, 300);">
Hi there.
</body>

</html>

*cLFlaVA
----------------------------
"Holy crip he's a crapple!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top