怎么用botton在另一个frame里打开指定网页

WBOY
Release: 2016-06-13 09:58:36
Original
1055 people have browsed it

如何用botton在另一个frame里打开指定网页
这是我的代码  

frame 的name是 p2,

网页是 p4.html

这个botton 在frame p3, 我想实现点击后,frame p2 的变成网页 p4.html

在火狐可以运行,但在IE 和遨游就不行



------解决方案--------------------
你把name换成id试一下
然后用
document.getElementById('p2').src = 'p4.html';
------解决方案--------------------

探讨


function change_src() {
parent.p2.src='http://www.126.com';
}
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template