Hello, I have a problem and I do not know how to solve it, please help.

There is a code:

<frameset rows="61,*"> <frame name="frminfo" scrolling="no" src="vls.php"> <frame name="frmsite" src="<?=$urlsite ?>"> </frameset> 

In the vls.php file there is a countdown of the timer (20 seconds), after 20 seconds has passed, there must be a redirect to $ urlsite, but my problem is that the redirect occurs inside the frame (and the whole page does not reload changing its address) . How can I fix this and make the correct redirect?

  • no way - because the handler for the frame, and not for the entire page. Use ajax or just set a timer on javascript - woland

1 answer 1

Javascript After 20 seconds in vls.php, something like the following script should be executed:

 window.top.location.href = "http://sait.ru"; // сюда подставить url из $urlsite 
  • Thanks, it worked!) - Csharp