Skip to main content
Oct 7, 2009 4:10 AM UTC
Answered

I need to create a link with confirmation..

Please I need a help o this :

I need to create a link with confirmation, it means that after clicking the link it does not redirects to the next page, but first it displays a question like "Are you sure you want to go to page XYZ" ? Yes / No  .If you click "No"  then message just dissapears, if you click "Yes" it goes to the next page...

Any dea ? thanks in advance...

This topic is closed to new replies. Start a new post to keep the conversation going.
DwFAQ
DwFAQCorrect answer
Participating Frequently
Oct 7, 2009 4:17 AM UTC
<a href="XYZ.php" onclick="return confirm('Are you sure you want to go to page XYZ?')">XYZ.php</a>

1 reply

DwFAQ
DwFAQCorrect answer
Participating Frequently
Oct 7, 2009 4:17 AM UTC
<a href="XYZ.php" onclick="return confirm('Are you sure you want to go to page XYZ?')">XYZ.php</a>
Translate