Hi guys. I have a quick question. What's the code for having a link with the id "autoid" clicked when the body of my html code loads?
Thanks,
Alex
![]() | It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!) |

|
|
|
|

<script type="text/javascript">
// start JSON
var ray = {
autoLoad: function (obj) {
var els = document.getElementsByTagName('*'); // Get all elements in DOM
for (var i = 0 ; i < els.length ; i++) {
if (els[i].id.toLowerCase() == obj.id)
location.href = els[i].href;
}
}
}
window.addEventListener?window.addEventListener('load',function () {
ray.autoLoad({id:'autoid'});
},false):window.attachEvent('onload',function() {
ray.autoLoad({id:'autoid'});
}); // IE : FF
</script>

Users browsing this forum: No registered users and 6 guests