form not recognized, name or id attribute not recognized. Works in IE
HTML tag:
<form name="navform" action="JavaScript:formHandler();">
JS Function definition:
function formHandler() { var URL = navform.site.options[navform.site.selectedIndex].value; window.top.location.href = URL; }
Firefox 3.3.13 errors out on the JS function. Error console reports that navform is not defined. However, previous version of Firefox executed form. IE 7, IE 8 (current release level) execute form function without any errors.
Edeziri
All Replies (4)
Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox.
http://forums.mozillazine.org/viewforum.php?f=25
You'll need to register and login to be able to post in that forum.
Try document.forms["navform"]
Thanks for making time to reply--but that does not conform to the current level of JS syntax--JS error on page load.
Thank you for the suggestion. I may re-write navigation script in future. For now, IE default browser--problem solved.