In my website, I need to open the page automatically after 5 seconds, I am using the following code, but my browser is showing POP-UP BLOCKED. Please let me know the solution for my query. Thanks in advance.
$(document).ready(function()
{
setTimeout(function(){
window.open("http://www.google.com")}, 5000);
});