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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

window browser size

Status
Not open for further replies.

hcubed

IS-IT--Management
May 9, 2002
100
AU
how can i change the window browser size and not have menu etc scroll bars etc
 
"how can i change the window browser size"
Code:
window.resizeTo(newwidth, newheight);

example full screen :
Code:
window.moveTo(0,0);
window.resizeTo(screen.width, screen.height);

"and not have menu etc scroll bars etc"
u canot do this in the same window
u must luuach a new one :
Code:
window.open('where.html','name','width=' + screen.width + ',height=' + screen.height + ',directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no');

so to lauch that window used this link
Code:
<a href=&quot;javascript:window.open('where.html','name','width=' + screen.width + ',height=' + screen.height + ',directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no')&quot;>link word</a>

dont forget to place this in other page
Code:
<body onload=&quot;window.moveTo(0,0);&quot;...
---------------------------------------
wmail.jpg


someone knowledge ends where
someone else knowledge starts
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top