2010-02-14 21 views
1

我使用父窗口和一個IFRAME我的HTML代碼下面給出噸如何讓A HREF = 「#頂」 從iframe的父窗口

Page1.html

<html> 
    <head> 
    <meta http-equiv="Content-Language" content="en-us"> 
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> 
    <title>New Page 1</title> 
    </head> 
    <body> 

    <a name="logo" href="Page2.html">dsd</a><br/> 
ttttttbr/> 
rrrrr<br/> 
rrrrr<br/> 
rrrrr<br/> 
rrrrr<br/> 
rrrrr<br/> 
rrrrr<br/> 
<iframe name="I1" src="Page3.html">Your browser does not support inline frames or is currently configured not to display inline frames. 
    </iframe> 

    </body> 

    </html> 

第3頁。 HTML

<html> 
<head> 
<meta http-equiv="Content-Language" content="en-us"> 
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> 
<title>New Page 1</title> 
</head> 
<body> 

<a href="Page2.html?#logo">dsd</a><br/> 
</body> 

</html> 

如果我點擊側iframe中的鏈接,在側IFRAME打開page2.html和移動的頂部父窗口頁面一起。

我該怎麼做?

希望烏爾支持

亞歷

回答