[prev in list] [next in list] [prev in thread] [next in thread]
List: kfm-devel
Subject: document.getElementById() broken?
From: Malte.Starostik () t-online ! de (Malte Starostik)
Date: 2001-02-28 6:39:24
[Download RAW message or body]
Hello,
at least since yesterday's build, document.getElementById() in JS scripts
_always_ returns undefined! Can anyone reproduce this?
The page below effectively does an alert(undefied) if you click on the link :(
-Malte
<html>
<head>
<title>getElementById() test</title>
<script type="text/javascript">
function checkIt()
{
alert(document.getElementById("foobar"));
}
</script>
</head>
<body>
<p>
<a id="foobar" href="" onclick="checkIt()">Click here</a>
</p>
</body>
</head>
</html>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic