Posted By

krisdb on 03/09/07


Tagged

javascript


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

vali29


confirm in link


 / Published in: JavaScript
 

  1. onClick="if (confirm('Are you sure?')) {document.location='page.asp'}"
  2.  
  3. onClick="if (document.FORM.FIELD.checked == false) {alert('Please check.');return false;}">
  4.  
  5. if (document.FORM.FIELD.value == '') {alert('Please enter a value.');return false;} else {runFunction();}

Report this snippet  

You need to login to post a comment.