Posted By

math89 on 01/10/10



Versions (?)

Popup alert on entering a webpage, with comfirm enrty

 / Published in: JavaScript

Popup on load page, if the visitor clicks Cancel, they will be returned to the previous page.

  1. function CONFIRM(){if (!confirm
  2. ("Change this to your message"))
  3. history.go(-1);return " "}
  4. document.writeln(CONFIRM())

Report this snippet  

You need to login to post a comment.