I have an html page with a random url that I want to be clicked programmatically in javascript
<html>
<head>
<script>
function ClickURL()
{
document.getElementById('xyz').click();
}
</script>
</head>
<body onLoad="ClickURL()">
<a href="www.somewebsite.com" id="xyz">Link </a>
</body>
</html>
This only works in IE - it does not work in FireFox. How do I solve this problem?