blog
Webalizer GroupAgent config – round 2 »
IE7 onclick and :active state
Curiously, if you add an onclick event to an anchor in IE7, the anchor remains in the CSS :active state regardless of whether the javascript returns true or false. It’ll stay in this state untill you click on another element on the page.
e.g.
<!DOCTYPE html> <html> <head> <style type="text/css"> a:active { background-color:red; } </style> </head> <body> <a href="#" onclick="javascript:return true;">Click me</a>
</body> </html>
This entry was posted on 2010.01.27 at 14:11 and is filed under Grinds My Gears. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Leave a Reply
archives
- July 2010
- May 2010
- February 2010
- January 2010
- December 2009
- December 2008
- October 2008
- August 2008
- May 2008
categories
- Blog (1)
- Grinds My Gears (5)
- Hosting (2)
- JavaScript (1)
- PHP (1)
- Sports (1)
- SQL (1)