File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes href and onbeforeunload Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "href and onbeforeunload" Watch "href and onbeforeunload" New topic
Author

href and onbeforeunload

Rajeev Ravindran
Ranch Hand

Joined: Aug 27, 2002
Posts: 455
hi all,

pls look at the code below.. i wonder why closeWin() is invoked when i click the link.. is it possible to avoid that ?




Thanks,
Rajeev.


SCJP, SCWCD, SCBCD, Oracle Certified Professional (SQL n PL/SQL)
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You need to do something like this:



Eric
Rajeev Ravindran
Ranch Hand

Joined: Aug 27, 2002
Posts: 455
Thanks Eric

I think this is the best forum in javaranch. Its hard to find a single thread in this forum with out any replies from Eric or Bear.
Thanks a lot to both of you !!

cheers
Rajeev.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: href and onbeforeunload
 
Similar Threads
JSP in Javascript
Setting dynamic parameter values?
problem with Frame
How to pass '&' as a query string through url
Double Byte Character "%" validation needed in Javascript