I noticed that (in IE) I didn't need to put the somefunction() between quotes, when I didn't want to send a string between the (). So: onclick=somefunction(1) works ok, while onclick=somefunction("string") gives an error.