Jump to content

[SOLVED] Pop up box


php_novice2007

Recommended Posts

Hi,

 

how do I write a confirm box with 'ok' or 'cancel' which opens when the user clicks on a link?

 

eg <a href = nextpage.html>Go to next page</a>

 

If the user clicks ok go to nextpage.html otherwise stay on the current page

 

I'm guessing I do something like

 

<a href = nextpage.html onclick=myConfirm();>Go to next page</a>

 

and have myConfirm() return either true or false, does <a> have kinda an "onsubmit" thing..?

 

Thanks~!

Link to comment
https://forums.phpfreaks.com/topic/65174-solved-pop-up-box/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.