I want to close my current window in javascript and want a prompt alert to close or stay here when window is closed by me.
i have used onbeforeunload property of body tag.
daniel36
-7
Light Poster
Troy III
commented:
A working code has been given to you - you need to say "THANK YOU!" and mark your thread as "Solved!"
-2
Recommended Answers
Jump to Postthis.close()
will do your thing!
;that is: the window will not close before prompting the client "do you wan't to close this tab \ window" ...
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.