[Javascript] IE onclick problem

Skip Evans skip at bigskypenguin.com
Tue Apr 15 20:18:47 CDT 2008


Hey all,

I'm having a problem using onclick in HTML files 
with IE 6 and 7. It works fine in Firefox, but not 
IE. Both of them get an error, typically "Object 
expected."

I use the following in HTML files:

<a href="#" onclick="return addPlayer();">Add 
Player</a>

Can someone tell me how I can make this work in 
IE, or offer some sort of alternative?

I've been searching Google and reading up on the 
problem but have not found a solution yet.

Thanks!
Skip

-- 
Skip Evans
Big Sky Penguin, LLC
503 S Baldwin St, #1
Madison, WI 53703
608-250-2720
http://bigskypenguin.com
=-=-=-=-=-=-=-=-=-=
Check out PHPenguin, a lightweight and versatile
PHP/MySQL, AJAX & DHTML development framework.
http://phpenguin.bigskypenguin.com/



More information about the Javascript mailing list