- Oct 19, 2000
- 17,860
- 4
- 81
I have two lines of javascript code that works great in IE8, but does not work at all in the latest Firefox.
ONLOAD=document.getElementById('scriptchoice').select();
ONCHANGE=document.getElementById('scriptchoice').select();
These are basically selecting a text form element when a user clicks on certain links. When that text form element is selected, magical things happen in the rest of the page that uses other (advanced) javascript that works great. If the user manually selects the text form element manually, everything works, but I need this to work so that a user doesn't have to do this meaningless task, I want javascript to select it automatically, since it needs to be done.
Firefox refuses to select the box, however. Some google searching hasn't done much for me. I found a thing or two, but I'm familiar enough with javascript to know what any of the fixes mean, or if it even applies to my situation.
How can I get Firefox to work with me on this?
ONLOAD=document.getElementById('scriptchoice').select();
ONCHANGE=document.getElementById('scriptchoice').select();
These are basically selecting a text form element when a user clicks on certain links. When that text form element is selected, magical things happen in the rest of the page that uses other (advanced) javascript that works great. If the user manually selects the text form element manually, everything works, but I need this to work so that a user doesn't have to do this meaningless task, I want javascript to select it automatically, since it needs to be done.
Firefox refuses to select the box, however. Some google searching hasn't done much for me. I found a thing or two, but I'm familiar enough with javascript to know what any of the fixes mean, or if it even applies to my situation.
How can I get Firefox to work with me on this?
