用按钮控制iframe显示的网页
2012-08-01 19:22
316 查看
View Code
//有两个按钮分别响应两个事件,用来控制iframe显示的网页。 <script type="text/javascript"> function bd(){ var baidu = document.getElementById("i"); baidu.src = "http://www.baidu.com"; } function xl(){ var sina = document.getElementById("i"); sina.src = "http://www.sina.com.cn"; } </script> <style type="text/css"> #i{ width:400px; height:300px; } </style> </head> <body> <iframe id = "i" scrolling = "no"> </iframe> <div> <input type = "button" value ="百度" onclick = "bd()"/> <input type = "button" value ="新浪" onclick = "xl()"/> </div> </body>
相关文章推荐
- 用按钮控制iframe显示的网页实现方法
- 用按钮控制iframe显示的网页实现方法
- <a>控制<iframe>中显示网页
- CSS 控制链接,按钮显示手型图标
- Iframe标签显示目标网页中某区域内容的实现方法
- QWebView使用SIMSUN字体时,遇到网页按钮字体显示不正常处理方法
- select控制网页内容隐藏和显示
- Dynamics CRM 365 子网格上"添加"按钮旁的“查看关联视图”按钮如何控制显示和隐藏?
- 手机网页设计怎么控制在不同的手机上显示的字体大小自动变化
- 用同一按钮控制DIV的显示/隐藏
- 点击下拉菜单按钮根据下拉框的值在当前页面显示不同的网页内容。
- 网页内容不显示 按钮无法触发提交事件
- gridview中控制按钮的显示
- select控制网页内容隐藏和显示
- select 控制网页内容隐藏于显示的实现代码
- 在框架(iframe)中怎么动态显示网页
- ASPxGridView-根据记录值来控制命令按钮(CommandButton)或子表命令列(CommandColumn)的显示与可用
- iframe 内显示的网页 只显示改网页的某一部分!
- 关于只是在网页右下半部分显示页面,用iframe的如何实现整体退出
- iframe 点击左侧菜单栏 右侧显示相应的网页内容