Looking for help with a simple script…
<script type=”text/javascript”> window.onload=”element.hide(‘popup’);” </script>
It doesn’t hide my div#popup currently – and I know I’m missing something basic. If you could clue me in that would be nice…thanks in advance.
[code=php] <script type="text/javascript"> window.onload=document.getElementById('popup').style.display='none'; </script> [/code]
[code=html] <script type="text/javascript"> window.onload=function() { document.getElementById('popup').style.display='none'; } </script> [/code]
[CODE]window.onload=function() { alert("test"); } [/CODE]
Help @johnnyblotter spread the word by sharing this article on Twitter...