`
化蝶自在飞
  • 浏览: 2307903 次
  • 性别: Icon_minigender_2
  • 来自: 武汉
社区版块
存档分类
最新评论

frames框架的联动打开 parent.frames的用法

阅读更多
在frame名称为main-frame的框架中打开location后面的网址.当页面被访问时打开.
比如很多cms程序后台一般分为上左右三部分,点击顶部导航,打开左侧自导航同时在右侧显示主页面内容的联动.理论上兼容各浏览器.
<script type="text/javascript">
parent.frames['main-frame'].location = 'http://www.9qc.com/';
</script>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics