Iframe 悬停时将链接加载到目标帧中

Iframe 悬停时将链接加载到目标帧中,iframe,hyperlink,onmouseover,Iframe,Hyperlink,Onmouseover,我有一个包含2个iFrame、1个导航框和1个内容框的页面。我想在鼠标上方将导航中的链接加载到内容中。本质上与使用target=“f”单击链接的行为相同,但无需单击 这个onmouseover=“window.location=event.target.href”通常用于自动加载链接,但我希望它在我指定的iframe中自动加载链接 导航框中的链接代码 <a target="f" href="pfh.html" onmouseover="window.location=event.targe

我有一个包含2个iFrame、1个导航框和1个内容框的页面。我想在鼠标上方将导航中的链接加载到内容中。本质上与使用target=“f”单击链接的行为相同,但无需单击

这个
onmouseover=“window.location=event.target.href”
通常用于自动加载链接,但我希望它在我指定的iframe中自动加载链接

导航框中的链接代码

<a target="f" href="pfh.html" onmouseover="window.location=event.target.href">pfh</a>


单击它会转到目标帧f,但它会在当前帧中加载onmouseover事件。

在发布之前,我在这里搜索了很长时间,但我做了一些尝试,并在本页的帮助下使其工作


添加代码(查看“如何提问”!)。另外,您需要使用iFrame有什么原因吗?我更喜欢使用iFrame,因为我最熟悉它们,而且我正在粘贴已经有目标代码的链接。
 onmouseover="top.frames['f'].location=event.target.href"