Submit Form to Many Places

[Total: 0    Average: 0/5]

This script will submit your form data to several places.

Body Code:

<script>
function newWin(_url)
{
  window.open(_url);
}

function doIt()
{
  var _web   = "http://"; /* http:// or nothing to stay on this web site */
  var _email = "?email="+document.f1.email.value;
  if(document.f1.c1.checked)
    newWin(_web+"js-x.com"+_email);
  if(document.f1.c2.checked)
    newWin(_web+"js-examples.com"+_email);
  document.f1.submit();
}
function makeItSo()
{
  return false; /* this kills the submit -- remove to have it actually submit */
}
</script>
<form name=f1 onsubmit="return makeItSo()" action="http://www.somewhere.com">
EMAIL:<input type=text name=email value="default@somesite.com"><BR>
JS-X:<input type="checkbox" name=c1><BR>
JS-EXAMPLES:<input type="checkbox" name=c2><BR>
<input type=button value="Click to send email to these pages" onclick=doIt()><BR>
</form>

Times Viewed: 1

Leave a Reply

Your email address will not be published. Required fields are marked *