I'm testing a page in netscape which works perfectly in IE. When I call a function in an onClick I get a javascript error saying "get_defn is not defined", this only happens in Netscape can someone tell me what I'm doing wrong?
Here's the function that's called:
And here's how it's called:
Here's the function that's called:
Code:
function get_defn(term_string)
{
if(navigator.appVersion!="Netscape")
IE_func(term_string);
else{
alert("Netscape");
window.onerror = NSundefined_term;
var defn_string = eval(term_string.replace(/ /g,"_").toUpperCase());
defn_array = defn_string.split("=");
document.form1.output.value = defn_array[0];
}
}
And here's how it's called:
Code:
<input type="button" name="B1" value="Search!" onclick="javascript:get_defn(document.form1.searchtext.value); write_link(); return false;">