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

Window size.

Status
Not open for further replies.

Ivan1

Programmer
Joined
Jun 18, 2001
Messages
113
Location
US
I was wondering if anybody can help me out with a script that focuses my newly opened window to the resolution set on the monitor.
Here is the temp URL:
You'll see that if you open the website with 1280X1024 RES
it'll be centered, any other RES setting forces the user to scroll.
Please advise.
Regards,
Ivan
 
Call this function to open the new window. It will size it to the res of the monitor. You may have to + or - a few pixels to get it perfect.

function newWin(){
bodyW=screen.width;
bodyH=screen.height;
window.open("index.html","","toolbar=no,width="+(bodyW-10)+",height="+(bodyH-58)+",directories=no,status=no,scrollbars=no,resize=no,menubar=no,left=0,top=0");
}

Let me know if you want this to work in Netscape as well as IE. ASCII silly question, get a silly ANSI
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top