|
|
|
Thread Tools | Rate Thread |
|
PM User | #1 |
New Coder Join Date: Jul 2003
Location: england
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
|
Onload window close
Is there a piece of coding that closes a window as soon as it opens,
thanks 4 ur help every1
__________________
http://www.wappo.co.uk/coders.PNG |
|
|
|
PM User | #2 |
New Coder Join Date: Jul 2003
Location: england
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
|
got it now!
<script> window.close() </script> so easy hey!
__________________
http://www.wappo.co.uk/coders.PNG |
|
|
|
PM User | #5 |
New Coder Join Date: Jul 2003
Location: england
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
|
lol, its for this web program im developing about right clicking
__________________
http://www.wappo.co.uk/coders.PNG |
|
|
|
PM User | #6 |
Senior Coder Join Date: Nov 2002
Location: Warwickshire, England
Posts: 1,229
Thanks: 0
Thanked 0 Times in 0 Posts
|
By the way, this isn't a clever idea. Closing windows confuses people. Confusion is anti-usable.
In fact, Microsoft agrees with me. When you use window.close() with IE, a confirmation prompt pops up asking if you really want to do that.
__________________
David House - Perfect is achieved, not when there is nothing left to add, but when there is nothing left to take away. (Antoine de St. Exupery). W3Schools | XHTML Validator | CSS Validator | Colours | Typography | HTML&CSS FAQ | Go get Mozilla Now | I blog! |
|
|
|
PM User | #8 |
Senior Coder Join Date: Jun 2002
Location: Wichita
Posts: 3,881
Thanks: 0
Thanked 0 Times in 0 Posts
|
Actually it's pretty obvious that what he's really wanting to do is to close the page if someone right-clicks on it in another lame attempt to protect web page content.
__________________
Check out the Forum Search. It's the short path to getting great results from this forum. |
|
|
|
PM User | #9 | |
Senior Coder Join Date: Nov 2002
Location: Warwickshire, England
Posts: 1,229
Thanks: 0
Thanked 0 Times in 0 Posts
|
Quote:
__________________
David House - Perfect is achieved, not when there is nothing left to add, but when there is nothing left to take away. (Antoine de St. Exupery). W3Schools | XHTML Validator | CSS Validator | Colours | Typography | HTML&CSS FAQ | Go get Mozilla Now | I blog! |
|
|
|
Bookmarks |
Thread Tools | |
Rate This Thread | |
|
|