Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML JavaScript

window.open(), window.close()

Javascript coding ..

Moderators: macek, egami, gesf

window.open(), window.close()

Postby popeye » Mon May 31, 2004 11:30 am

1) How can I pass the maximum possible values for screen height and width to window.open() ?

2) Is it possible to close a window without user confirmation?

Thanks for your help.
User avatar
popeye
New php-forum User
New php-forum User
 
Posts: 120
Joined: Sat Jan 03, 2004 7:06 pm
Location: New York, NY

Postby gesf » Mon May 31, 2004 3:22 pm

1st:

You can acceess the screen width and height values by invoking:

window.screen.availWidth;
window.screen.availHeight;

2nd:

Your answer here:

close(window)
User avatar
gesf
Moderator
Moderator
 
Posts: 1718
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden

Postby popeye » Mon May 31, 2004 5:18 pm

Got it. Thanks for your help.
User avatar
popeye
New php-forum User
New php-forum User
 
Posts: 120
Joined: Sat Jan 03, 2004 7:06 pm
Location: New York, NY

Postby Oleg Butuzov » Mon May 31, 2004 9:35 pm

popeye,
in the next time you need to know that we have javascript depatment!
Oleg Butuzov
Last Samuray
Last Samuray
 
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

Postby gesf » Tue Jun 01, 2004 6:07 am

Pejone, is right popeye!

BTW: I think you can access through screen.width and screen.height too!

Cheers,
Gesf
User avatar
gesf
Moderator
Moderator
 
Posts: 1718
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden


Return to JavaScript

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.