I'm trying to open a new tab with javascript after the HTML is fully loaded by the browser. I tried this, but it's not working at all:
<script type="text/javascript">document.addEventListener("DOMContentLoaded",function(event){window.open('http://www.google.com');});</script>
Can you help me out and point me in the right direction?
Thanks!