What I want is to execute my js after the page is loaded (so, the normal
behabiour), not while it is loading. And I would like to add my
javascript behaviour when necessary (on demand, no in page header). Is
it possible? I have always done so but now with dojo and struts 2.
Lukasz Lenart escribió:
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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]