[HTML]<html>
<head>
<script type="text/javascript">
onerror=handleE rr;
var txt="";
function handleErr(msg,u rl,l)
{
txt="There was an error on this page.\n\n";
txt+="Error: " + msg + "\n";
txt+="URL: " + url + "\n";
txt+="Line: " + l + "\n\n";
txt+="Click OK to continue.\n\n";
alert(txt);
return false;
}
function message()
{
adddlert("Welco me guest!");
}
</script>
</head>
<body>
<input type="button" value="View message" onclick="messag e()" />
</body>[/HTML]
This code returns
"object expected" in IE and
"adddlert not defined" in Mozilla Firefox
Question:
I want the data "adddlert not defined" to be displayed in IE too. How can i get that information in IE ?
<head>
<script type="text/javascript">
onerror=handleE rr;
var txt="";
function handleErr(msg,u rl,l)
{
txt="There was an error on this page.\n\n";
txt+="Error: " + msg + "\n";
txt+="URL: " + url + "\n";
txt+="Line: " + l + "\n\n";
txt+="Click OK to continue.\n\n";
alert(txt);
return false;
}
function message()
{
adddlert("Welco me guest!");
}
</script>
</head>
<body>
<input type="button" value="View message" onclick="messag e()" />
</body>[/HTML]
This code returns
"object expected" in IE and
"adddlert not defined" in Mozilla Firefox
Question:
I want the data "adddlert not defined" to be displayed in IE too. How can i get that information in IE ?
Comment