How to open pop-up new window when load page using Javascript?
I want, when a website load, it will automatic open popup new window.
I use the following:
<script type="text/javascript">
function open_on_entrance(url,name)
{
window.open('http://www.google.com','google', ' menubar,resizable,dependent,status,width=300,height=200,left=10,top=10')
}
</script>
<body onload="open_on_entrance()"></body>
Not work??