aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes href confirmation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "href confirmation" Watch "href confirmation" New topic
Author

href confirmation

Art Vandelay
Ranch Hand

Joined: Dec 27, 2009
Posts: 49
I have an html link element, on which the user can clock to log out. But i would like to show a confirmation before going on to the referenced link. The '${logout}' is a request attribute containing the link.

After clicking on the link, no confirmation is shown, but the link is directly opened. Any idea why no confirmation is shown?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Working for me--what browser are you using?

Why wouldn't you just use:
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30551
    
152

Dpoes your browser show a JavaScript error if you look at the error console?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Art Vandelay
Ranch Hand

Joined: Dec 27, 2009
Posts: 49
David Newton wrote:Working for me--what browser are you using?

Why wouldn't you just use:

Thanks, this solved my problem!

btw. i am using firefox 3.5 and also tested it on IE 7, works in both.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: href confirmation