简体   繁体   中英

Redirecting to a new page without frames

I have a framed site (i cannot change this), when i redirect out of my site using

 window.location 

to one of our other sites it inserts the page into the main frame such that the other frames still exist.

I do not want this, the page must completely change to the different website. How can i do this using.

javascript/php/jquery

使用window.top.location更改顶部框架(主页)的位置。

window.top.location = "newpage.html";

我不确定我是否完全了解您,但是也许这正是您想要的

 <meta http-equiv="refresh" content="30; URL=http://yoursite.com">

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM