Blogs of Samraj Singh
Tuesday, January 5, 2010
Initializing parameterized function in onclick in javascript
var htmlElement=new Function('functionName('+param1+')');
or
htmlElement.onclick=(function(param1){return function(){functionName(param1)}})(param1);
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Blog Archive
►
2013
(11)
►
January
(11)
►
2011
(9)
►
March
(3)
►
February
(6)
▼
2010
(9)
►
July
(7)
▼
January
(2)
16 jobs where salaries will decline in 2010
Initializing parameterized function in onclick in ...
►
2009
(34)
►
December
(8)
►
November
(2)
►
October
(6)
►
September
(9)
►
July
(9)
No comments:
Post a Comment