CSS Bugs on IE

IE 10

I'm trying to prove that .test can be clicked.

Your question was really vague. Did you check the console, etc? My guess is it didn't work for you because you were trying to use the jQuery library.

Anyhow, the onclick event works perfectly fine for me in IE7 and above:

PHP:
getElementById('idOfElement').onclick = function() { alert('I was clicked.') }

See demo.
 
Last edited:
Your question was really vague. Did you check the console, etc? My guess is it didn't work for you because you were trying to use the jQuery library.

Anyhow, the onclick event works perfectly fine for me in IE7 and above:

PHP:
getElementById('idOfElement').onclick = function() { alert('I was clicked.') }

See demo.
dang...I should have make it clear for you guys to understand :'( my bad.

well actually, it has nothing do with jquery nor javascript, its all about the CSS.
Basically, :active doesn't work in IE and Opera and I wonder why.
 
Back