p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Javascript How-To (http://p2p.wrox.com/forumdisplay.php?f=87)
-   -   Urgent:Javascript (http://p2p.wrox.com/showthread.php?t=61576)

ivanlaw August 29th, 2007 12:09 AM

Urgent:Javascript
 
Hi~all pros,

Could anyone tell me how to use javascript coding to unload a web page???
Waiting for you advice...[xx(]

Thank you.


Dj Kat August 29th, 2007 06:09 AM

what do you mean unload a webpage???

__________________________________________________ ________
I am DJ Kat...that's my name. Its a D and a J and a Kat with a K.

ivanlaw August 31st, 2007 08:13 PM

For example:
If I press the Logout button,then all the web page window will automatically close.That's all only.
Waiting for you advice...

Thank you.




mike_remember September 3rd, 2007 08:22 AM

Simply use window.close() method which will close the current webpage.

Regards
Mike

To the world you might be one person,
but for someone you might be the whole world.

mike_remember September 3rd, 2007 08:22 AM

However, if you are not closing a pop up window, but a complete page, use the following:

window.opener=null;window.close()

Regards
Mike

To the world you might be one person,
but for someone you might be the whole world.

ivanlaw September 4th, 2007 08:18 PM

Hi there,
Thank you for giving advices,I think that is what I want it.

Thank you very much.



All times are GMT -4. The time now is 08:30 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.