Click to See Complete Forum and Search --> : window size
ai3rules
05-30-2003, 06:18 PM
how do i specify the size of a window.
open('http://www.website.com')
thats what im doing to have a page open, is there a way to specify the exact size it opens to?
Charles
05-30-2003, 06:29 PM
<a href="http://www.w3.org/" onclick="window.open(this.href, 'child', 'height=300,width=200'); return false">W3C</a>
ai3rules
05-30-2003, 06:36 PM
Thanks Dave,
what if i wanted to specify the size of a page that im creating, not one that will open when clicking a link from another page. To clarify, lets say im making only one page and when i open that from my computer i want it to open to a specific size.
If possible, i was also wondering how i could eliminate the toolbars and **** from the top.
Thanks
ai3rules
05-30-2003, 06:48 PM
thanks
one last question, i think lol. can i have the window open to a certain location on the screen, or have it open maximized?
window.moveTo(10,10) to have the window open at 10px from the top and left of the screen... ;)
ai3rules
06-01-2003, 01:26 PM
I dont mean to keep bothering you, but this is what i have.
function auto()
{
open('http://www.website.com');
open('http://www.website.com');
open('http://www.website.com');
}
thats in an external javascript that runs onLoad when the main page is opened. Now how would i get those three pages to open to specific sizes - using the screen.width methods, etc...