How to Open a new webpage in new window after 10 seconds in php? – PHP

  php

Q(Question):

How to Open a new webpage in new window after 10 seconds in php?

It is like if i am browsing http://xyz.com , then after 10 seconds a new window open with the url http://abc.com

Any idea?

A(Answer):

I use this in one of my scripts


$refreshtime = 600; #10 minutes
$header = 'refresh: '.$refreshtime.'; url=http://www./path/to/page.php';
header($header);

Can’t remember how it works

A(Answer):

How should basically we have to implement this code?

A(Answer):

What problem are you having with it?

A(Answer):

It will open the new page in the same window , i belieive.
But i want the new page to be open in new window.

A(Answer):

Modufy the address here

url=http://www./path/to/page.php

To any address you like

A(Answer):

It will need JavaScript implementation.
Use window.onload, window.setTimeout and window.open functions.

LEAVE A COMMENT