Im having problems with this simple code:
Javascript:
<script>
window.onload = function(){
document.getElementById("grenaa").click();
}
</script>
HTML:
<a href="#" id="grenaa" data-filter=".term-grenaa">Menukort - Grenaa</a>
I want to click the link when the page is done laoding. It dosen't seem to work in Safari. Here you can get the idea: www.friskfisken.dk/take-away . The page won't accept jQuery only plain Javascript.