Javascript working in Firefox but not in IE -
Posted
by Summer
on Stack Overflow
See other posts from Stack Overflow
or by Summer
Published on 2010-04-02T19:23:18Z
Indexed on
2010/04/02
19:33 UTC
Read the original article
Hit count: 184
JavaScript
I have this
authnav='<li class="last"><a href="auth/login">login</a></li>'+
'<li><a href="auth/create_account">create account</a></li>';
It works fine in Firefox, but Internet Explorer gives me an "Error: Object doesn't support this property or method" I'm mystified - what could be going on here?
There's a comment line above the offending line, could that possibly be making a difference?
//authnav='<li class="last"><a href="auth/login">login</a></li>';
Check out the page yourself at http://www.imagineelection.com. I want two little links, "login" and "create account", to appear on the top right of the page.
Thanks!
© Stack Overflow or respective owner