删除HTML框架 [英] Removing HTML frames

查看:80
本文介绍了删除HTML框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网站,将屏幕分成两个帧;上半部分是我的网站的名称;下半部分是一个广告网站.

I have a website which splits the screen into two frames; the top half is the name of my website; the bottom half is an advertised website.

我想要这样,如果用户单击上半部分(我的网站)上的链接,则该用户将转到我的主页.

I want it so if the user clicks the link on the top half (my website) the user is taken to my homepage.

这可行,但是我的网站加载到了上半部分而不是整个屏幕上.

This works, but my website is loaded into the top half and not the whole screen.

如何获取链接以删除框架并在整个浏览器中显示我的网站.

How do I get the link to remove the frames and display my website in the whole browser.

这就是我在说的:

http://www.thefacebookies.com/advertise.php

尝试了不起作用的target ="_ top".

Have tried target="_top" which doesn't work.

非常感谢.

推荐答案

您拥有:

<a onClick="window.location ='bet.php'" target="_top">

应该是:

<a href="bet.php" target="_top">

  • HTML会在不使用JavaScript的情况下 做.
  • target属性不会影响对window.location的分配
    • Don't use JavaScript when HTML will do.
    • The target attribute doesn't influence assignments to window.location
    • 这篇关于删除HTML框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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