CSS LightView Style popup
http://www.sohtanaka.com/web-design/css-lightview-style-popup/
Showing posts with label JAVASCRIPT. Show all posts
Showing posts with label JAVASCRIPT. Show all posts
How to protect your email from span in a website
EMAIL OBFUSCATOR
http://www.jottings.com/obfuscator/
http://www.jottings.com/obfuscator/
Disable Enter to submit a form
Add the script
onKeyPress="return event.keyCode!=13"
in the BODY of the HTML document for all the web page,
OR
1. Disable in the form the submit.
<nested:form action="docMgmt" onsubmit="return false;" styleId="my_form"/>
2. Creta a function that submit a from in your js script.
function submitFrm(objId){
var theform = document.getElementById(objId);
theform.submit();
return true;
}
3. call the above function from the submit button...
<nested:submit onclick="submitFrm('my_form');">Submit!!</nested:submit>
See the original view:
http://kreotekdev.wordpress.com/2007/11/16/disabling-the-enter-key-on-forms-using-javascript/
onKeyPress="return event.keyCode!=13"
in the BODY of the HTML document for all the web page,
OR
1. Disable in the form the submit.
<nested:form action="docMgmt" onsubmit="return false;" styleId="my_form"/>
2. Creta a function that submit a from in your js script.
function submitFrm(objId){
var theform = document.getElementById(objId);
theform.submit();
return true;
}
3. call the above function from the submit button...
<nested:submit onclick="submitFrm('my_form');">Submit!!</nested:submit>
See the original view:
http://kreotekdev.wordpress.com/2007/11/16/disabling-the-enter-key-on-forms-using-javascript/
Subscribe to:
Posts (Atom)