Forum Moderators: open

Message Too Old, No Replies

JS dialog box on a link

         

andrewsmd

5:22 pm on Mar 10, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have a link let's say
<a href = "somepage.html">some page</a>
What I want is a box to pop up when someone clicks on that link that says are you sure you want to go to some page?
Then, if they click ok I want to go to that page. I'm a server side programmer and I usually don't have to do front end things like this. Thanks in advance,

coopster

5:32 pm on Mar 10, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Set the onclick handler to a "window.confirm" and return true or false

andrewsmd

6:04 pm on Mar 10, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks,