0
我有两个网站www.mywebsite.com和www.otherwebsite.com。我使用iframe将mywebsite.com重定向到otherwebsite.com。有没有更改页面更改网址的路径。例如,当链接otherwebsite.com/contact.html被点击时,框架将/contact.html添加到mywebsite.com,使其成为www.mywebsite.com/contact.html。我尝试将下面的代码添加到页面,但它似乎不适用于框架。更改页面上iframe的路径
history.pushState(null, "A new title!", "contact.html")