English 中文(简体)
一栏内所有链接的变更目标改为“父母”
原标题:Change target of all links inside an iframe to "_parent" jquery

试图把目标设定在一线内的所有环节,即使用 j子的“父母”,但并不确定如何做到这一点,谁能帮助我?

<script src="jquery-1.5.2.min.js">
$( a ).target("_parent");
</script>  

<iframe src="http://google.com" frameborder="0"></iframe>

这样做是因为我想定制我的火ox4主页,向我展示谷歌的开首页,在“外国”链接附近举行恢复会议,我几乎这样做,但我不会在座右边打开新的链接或搜索。

增 编

P.S. 如果是另一种不使用杂草的方式,那将是巨大的。

问题回答

......

$( a ).attr("target", "_parent");

j中没有任何称作<代码>target(>)的方法; http://api.jquery.com/attr/"rel=“nofollow”

为了做到这一点,你应当有两条<代码>和斜线”;字母/>标签。

<script src="jquery-1.5.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
$( a ).attr("target", "_parent");
</script>

仅凭您所知,如果其内容以与其上级文件不同的领域为主,则您不能查阅iframe的内容。

可以指出,你可以这样做,而不必用基数说明任何东西。

<base target="_parent">

页: 1





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签