Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within HTML Pages with CSS and JavaScript
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
HTML Pages with CSS and JavaScript
Executing a function before window.close
PavanPL KalyanK
Ranch Hand
Posts: 212
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi to Ranchi members
I have a button , and on the click of this window will be closed . I need to execute some function before the window closes . How can i ?
<input type=button value="Close Me" Onclick = window.close()/>
How can i achieve this ?
Please help
Balu Sadhasivam
Ranch Hand
Posts: 874
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Pavan,
Call a function instead of window.close() and include your statements there inside the function() and at the end provide window.close()
something like this
function call() { alert("here") // your code goes here.. window.close() } <input type=button value="Close Me" onclick='call()'/>
PavanPL KalyanK
Ranch Hand
Posts: 212
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanks a lot
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Event not getting called before window close
How To Close Parent Window?
Open a window on close of main window
How do I use time intervals??
Closing window
More...