Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how can i close a currently running page..

i put this.dispose(); code

bt its not working


kindly help me

Kishore R
Gis Solutions
Posted

1 solution

kishore Rajendran wrote:
how can i close a currently running page


The client needs to trigger it.
For ex, if the client clicks a button, use following JavaScript to close the window:
JavaScript
window.close();


This would confirm user if he wants to close the window.
It doesn't work with FireFox.

I think you can write a JavaScript function, which would do the same in defined time interval. But i haven't tried it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900