"C A Upsdell" <""cupsdell"@nospam@upsdel" wrote:
>
> Run it through the validators. There is at least one significant HTML
> error.
>
> BTW, when something works with IE only in Quirks mode, it is a strong
> hint that your code is broken or that your understanding of the
> standards is broken.
>
> .
Thanks, but fixing the errors did not resolve the issue:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Test</title>
<script type="text/javascript">
function onClick() {
var rct = document.getElementById("test").getBoundingClientR ect();
alert( "L:" + rct.left + ", " +
"T:" + rct.top + ", " +
"R:" + rct.right + ", " +
"B:" + rct.bottom
);
}
</script>
</head>
<body>
<a id="test" href="#"><strong>Test</strong></a><br />
<button onclick="onClick()">Click Me!</button>
</body>
</html>
|