TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Sourabh Dhiman
NA
323
58.7k
Code issue into jquery ?
Oct 22 2019 4:46 AM
window.onunload = function () {
if ((window.event.clientX < 0) || (window.event.clientY < 0)) // close button
{
var Data = $("#transactionID").val();
removeSoftbooking(Data);
alert("CLose browser");
}
else if (window.event.altKey == true) // ALT + F4
{
var Data = $("#transactionID").val();
removeSoftbooking(Data);
alert("Tab Close");
}
else // for all other unload events
{
var Data = $("#transactionID").val();
removeSoftbooking(Data);
}
Not Run Code Google chrome ,FF, Safari .
Please please my help
Reply
Answers (
1
)
Close Tab and Browser Issue ?
FILL ASP.NET DROPDOWN CONTROL FROM JQUERY