![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
The following input checkbox onclick via DOM is not working on IE7, FF, or WebKit, but is working on Opera for some strange reason. snip function init() { test = document.createElement( "INPUT") test.type = "checkbox" test.checked = true test.onClick = "alert( 'test = ' + this.checked)" snip Hope I have not missed something too silly. |
#2
| |||
| |||
|
|
"Richard Cornford" <Richard.Cornford (AT) googlemail (DOT) com> wrote in message news:b29caec3-a504-4663-b98f-0d17e5c8d0d6 (AT) s9g2000prm (DOT) googlegroups.com... On Oct 31, 2:35 pm, Aaron Gray wrote: The following input checkbox onclick via DOM is not working on IE7, FF, or WebKit, but is working on Opera for some strange reason. snip function init() { test = document.createElement( "INPUT") test.type = "checkbox" test.checked = true test.onClick = "alert( 'test = ' + this.checked)" |
|
Have not done some JavaScript for a couple of weeks, amazing how quickly my brain chucks things out. |
![]() |
| Thread Tools | |
| Display Modes | |
| |