OK, I'm trying to do something here that should be fairly simple. I have an A located in my code that needs to have a different HREF value based upon the browser and some other data the user enters. The problem is that I cant get this to work. Here is an example of a greatly simplified version of the code that is producing the problem :
<a id="fms" class="player" style="display:block;width:624px;height:352px" href="#">
<img src="/flowplayer/intro.png" alt="Click here to start playback" width="624px" height="352px" border="0" />
document.getElementByID("fms").href = "http://www.google.com";
In FF, the code simply doesn't work. In IE8, the code fails with the error message, "Object doesn't support this property or method". I've looked up the docs and it looks to me like this SHOULD be working. Any ideas?