Popup alert on entering a webpage, with comfirm enrty


/ Published in: JavaScript
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. function CONFIRM(){if (!confirm
  2. ("Change this to your message"))
  3. history.go(-1);return " "}
  4. document.writeln(CONFIRM())

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.