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
Tim Cooke
paul wheaton
Ron McLeod
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
Forum:
HTML Pages with CSS and JavaScript
onLoad function not supported in chrome.
karthik swamy
Ranch Hand
Posts: 45
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
hi Everybody,
here is my code so please help me...
<html> <head> <script type="text/javascript"> $(window).on('beforeunload', function() { return 'Your own message goes here...'; }); </script> </head> <body > <b>Close this window or press F5 to reload the page.</b> <a href="appli1.jsp">Leave this page</a> </body> </html>
while clicking on hyperlink the script function doesn't get execute... so please provide me the solution...
Thanks & Regards,
Karthik Swamy.
Eric Pascarello
author
Posts: 15385
6
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
title says onload and there is no onload in the code sample?
Eric
Power corrupts. Absolute power xxxxxxxxxxxxxxxx is kinda neat.
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Servlet Event Stream doesnt stop after JSP exits
Problem in window resizing on Loading
Question on Body onload Javascript
Why is my javascript code throwing syntax error
Retrieving Windows user in JavaScript - Chrome/Firefox browsers
More...