View Single Post
  #6 (permalink)  
Old 11-13-09, 07:23 AM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 3,027
Thanks: 14
Thanked 35 Times in 33 Posts
Quote:
Originally Posted by TwoD View Post
Remove the parenthesis. You're calling the function and assigning its return value to onclick, instead of assigning it the function reference itself.
Actually, I tried that earlier but couldn't get that to work either. I also tried 'addListener', and a couple of other variations with no luck.
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]
Reply With Quote