HighDots Forums  

How to set window attributes on loading.

alt.html.dhtml alt.html.dhtml


Discuss How to set window attributes on loading. in the alt.html.dhtml forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Billy Yard
 
Posts: n/a

Default How to set window attributes on loading. - 10-17-2005 , 05:47 PM






If you want certain attributes to be set in a window when it is loaded
by opening the page from Windows Explorer (i.e. when double clicking
on a .html file) such as no toolbar, etc. how do you go about this?

Reply With Quote
  #2  
Old   
Billy Yard
 
Posts: n/a

Default Re: How to set window attributes on loading. - 10-28-2005 , 04:35 PM






To answer my own question, you just put the JavaScript in the body of
the page, for example.

..
..
..
<body>
<script type="text/javascript">
{
window.resizeTo( 600, 600);
window.moveTo( 50, 50 );
}
..
..
..

Quote:
If you want certain attributes to be set in a window when it is loaded
by opening the page from Windows Explorer (i.e. when double clicking
on a .html file) such as no toolbar, etc. how do you go about this?

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.