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="w/https://www.daniweb.com/programming/web-development/threads/109625/ww.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?