CODE:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> Mozilla Test </TITLE>
<script language="javascript">
function call(){
alert("Inside Call");
var idVal=document.getElementById("f1").t1.value;
alert(idVal);
}
</script>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY>
<form name="f1">
<input type="text" name="t1" size=20>
<input type="text" name="t2" onClick="call()">
</BODY>
</HTML>
Error Thrown in Javascript Console
Error: [Exception... "'Permission denied to set property XULElement.selectedIndex' when calling method: [nsIAutoCompletePopup::selectedIndex]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame :: file:///C:/javascript/mozillatest.html :: call :: line 9" data: no]
Source File: file:///C:/javascript/mozillatest.html Line: 9
Error: document.getElementById("f1") has no properties
Source File: file:///C:/javascript/mozillatest.html Line: 10
UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)



