Saturday, May 11, 2024
 Popular · Latest · Hot · Upcoming
154
rated 0 times [  157] [ 3]  / answers: 1 / hits: 35094  / 11 Years ago, tue, august 6, 2013, 12:00:00

Normally when click anchor tag it redirects to some url which is given inside the href attribute. Is there is any possiblity here for confirmation. When we click anchor tag it shows confirmation Are you sure want to continue if we clicked yes it gets redirect to that url which is given inside href. if we click no it remains in same page. Please share any ideas you might have.


More From » jquery

 Answers
5

Try this



<a href=http://www.google.com onclick=return confirm('Are you sure?') >click here</a>

[#76505] Sunday, August 4, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jaelynncherokeeg

Total Points: 697
Total Questions: 109
Total Answers: 104

Location: France
Member since Thu, Mar 18, 2021
3 Years ago
jaelynncherokeeg questions
Thu, May 27, 21, 00:00, 3 Years ago
Fri, Jan 24, 20, 00:00, 4 Years ago
Thu, Nov 14, 19, 00:00, 5 Years ago
Wed, Sep 18, 19, 00:00, 5 Years ago
;