S
Stefan Mueller
Why do I get the following error message in Mozilla if I press a key in the
input box?
================================
Error: [Exception... "'Permission denied to get property
XULElement.selectedIndex' when calling method:
[nsIAutoCompletePopup::selectedIndex]" nsresult: "0x8057001e
(NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame ::
file:///D:/test/index.html :: message :: line 4" data: no]
Source File: file:///D:/test/index.html
Line: 4
================================
<html>
<script type="text/javascript">
function showmessage() {
alert("Why does Mozilla report an error?")
}
</script>
<body>
<form name="myform">
<input type="text" name="myinputbox" value=""
onKeyPress="showmessage()">
</form>
</body>
</html>
================================
What's wrong with my code?
Stefan
input box?
================================
Error: [Exception... "'Permission denied to get property
XULElement.selectedIndex' when calling method:
[nsIAutoCompletePopup::selectedIndex]" nsresult: "0x8057001e
(NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame ::
file:///D:/test/index.html :: message :: line 4" data: no]
Source File: file:///D:/test/index.html
Line: 4
================================
<html>
<script type="text/javascript">
function showmessage() {
alert("Why does Mozilla report an error?")
}
</script>
<body>
<form name="myform">
<input type="text" name="myinputbox" value=""
onKeyPress="showmessage()">
</form>
</body>
</html>
================================
What's wrong with my code?
Stefan