bot-tak wrote on 02 aug 2003 in comp.lang.javascript
:
it shouldn't be not so difficult
everytime, in each browser i see "nothing".
where is the element?
<html>
<head>
<script type="text/javascript">
alert(document.getElementById("cool"));
</script>
</head>
<body>
<p id="cool">this is content</p>
</body>
</html>
try this, vassili:
<html>
<head>
</head>
<body>
<p id="cool">this is content</p>
<script type="text/javascript">
alert(document.getElementById("cool"));
alert(document.getElementById("cool").innerHTML);
</script>
</body>
</html>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)