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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.