G
Gianni
I get different results with the following script
in IE and Firefox.
tes.gif does not exist so it should show false
on both browsers.
IE shows false and Firefox shows true.
Am I misunderstanding something?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<script type="text/javascript">
function alertComplete()
{
var msg = document.getElementById("testid").complete;
alert(msg);
}
</script>
</head>
<body onload="alertComplete()">
<img id="testid" src="tes.gif" alt="test gif" />
</body>
</html>
in IE and Firefox.
tes.gif does not exist so it should show false
on both browsers.
IE shows false and Firefox shows true.
Am I misunderstanding something?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<script type="text/javascript">
function alertComplete()
{
var msg = document.getElementById("testid").complete;
alert(msg);
}
</script>
</head>
<body onload="alertComplete()">
<img id="testid" src="tes.gif" alt="test gif" />
</body>
</html>