Try to put your JavaScript in page header and use onload

<header>

<script>
window.onload = function() {
  alert('hi');
  alert(document.getElementById('id'));
}
</script>
</header>


Regards
-- 
Lukasz

http://www.linkedin.com/in/lukaszlenart

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to