How to pass parameter to the attachEvent javascript function

Posted by Lakshman on Stack Overflow See other posts from Stack Overflow or by Lakshman
Published on 2010-04-18T19:33:26Z Indexed on 2010/04/18 19:43 UTC
Read the original article Hit count: 487

I have to pass paramter the validateNum javascript function (eg. num1, num2)

if (num1.attachEvent) {
 num1.attachEvent("onkeypress", validateNum);  
}

How to pass. can i get code sample?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about javascript-events