更改已打开的弹出窗口的URL [英] change url of already opened popup

查看:148
本文介绍了更改已打开的弹出窗口的URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以更改弹出窗口的URL。

Is it possible to change the url of the popup.

假设我打开一个弹出窗口:

Assume I open a popup:

function pop1(){
    window.open('http://google.com','wind1');   
}

可以将弹出窗口wind1的网址更改为http ://msn.com。与location.href或任何其他解决方案的东西。

Can the url of the popup window 'wind1' be changed to say 'http://msn.com'. Something with location.href or any other solution.

推荐答案

var w1 = window.open('http://www.canop.org','wind1');

w1.location.href='http://www.google.com';

这篇关于更改已打开的弹出窗口的URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆