Skip to main content
October 7, 2009
Answered

I need to create a link with confirmation..

  • October 7, 2009
  • 1 reply
  • 366 views

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 has been closed for replies.
Correct answer DwFAQ
<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
October 7, 2009
<a href="XYZ.php" onclick="return confirm('Are you sure you want to go to page XYZ?')">XYZ.php</a>