JavaScript Alert OK & Cancel Popup - Confirm Message Box


JavaScript confirm box will alerts the users if they wishes to open a new web page in a separate window. If the user clicks on the link, a popup window will show "OK" or "CANCEL" button, Confirm the script will open a brand new window if the user says Cancel however the message will go away.

This JavaScript confirm link is good for that website who is linking to "Partner site", "Sister site", or "Recommended site". The benefits of this script will also allow your visitor to make the decision to open this link or not, because many of surfer dislike the link that open in new window. So, your visitor has a good experience when they visit your site. And you keep your visitors to stay more longer.

Here is some examples of using this script:

  • A text link that will lead the user to third party website.
  • Age limitation website.
  • Payment page.
  • A link to web page that unsuitable to publics.

and more...

Script Demo:




LINK DESCRIPTION (DEMO)

JavaScript Code:


Insert this code into <head> tags


Insert this code into <body> tags


Instruction:

Change the following text:

  • CONFIRM MESSAGE = Which your message will be displayed in popup message box.
  • LINK LOCATION = Web page URL where to links to.
  • YOUR URL = Web page URL where to links to (same as 'LINK LOCATION').
  • LINK DESCRIPTION = Link Text.

Webmaster » Web Programming » JavaScript » Alert » OK & Cancel Popup


 Related Links:

Home | Sitemap | Bookmark This Page
Sponsored Links