看过类似的!拷贝过来,自己改改就可以啦!比如这个button有一个onclick事件
a.html:<input type=button value=ChangeMainLocation onclick="bChange()">
<script>
function bChange(){
parent.main.location.href="http://www.ibeyond.org/";//后边的url就是你要替换的
}
</script>
a.html:<input type=button value=ChangeMainLocation onclick="bChange()">
<script>
function bChange(){
parent.main.location.href="http://www.ibeyond.org/";//后边的url就是你要替换的
}
</script>
解决方案 »
- 疑难杂症...用<a href>连接某图片地址...点击后没反应...
- 有句代码不明白
- 返回日期的月份
- 怎样在<asp:table>动态添加一列<asp:textBox>
- 帮忙看下这句 错在哪里啊……各位大大们!
- 如何实现获取id=下一个ID
- 关于Response.Write("<script language=javascript>confirm('dkl')</script>")
- Xcopy如何把有空白解决方案加类库的文件全复制出来
- 如何解决treeview的刷新问题
- 表单创建sql语句的时候怎么彻底消除输入'的副作用?
- 一个大的系统下可以在每个子系统中各有各自的webconfig吗?
- 怎么转成字符串?
<script>
function bChange(){
var lable = parent.main.document.all.Lable1;
if (lable.style.display=="none")
{
lable.style.display = "";
}
else
{
lable.style.display = "none";
}}
</script>
window.open('start.aspx','main')
}function Button2_onclick() {
parent.main.document.all.label1.style.display == 'none'
}button1,button2都在contents中
button1按了以后main中调入start.aspx. start.aspx中有一个[labelid]是label1的label
但button2按了以后页面就显示页面有错误,main中的label1不能unvisible
Response.Write("<script>parent.main.document.all.label1.style.display == 'none'</script>");
}