无法在目标属性HTML中使用_parent

时间:2015-05-23 18:53:07

标签: html attributes parent target

我正在尝试使用_parent作为其值的target属性。

这是第一个代码

<html>
<head></head>

<frameset rows="30%,70%" >

            // About Frame1
            <frame src="" name="" />

            // about Frame2
            <frameset  cols="50%,50%">
            <frame src="targetattribute_file1.html" name="" />
            <frame src="" name="" />
            </frameset>

</frameset>

<body>
</body>
</html>

这是我的第二个文件(targetattribute_file1.html)

<html>
<head></head>
<body>
<a href="http://www.youtube.com" target="_parent">Click here  for youtube</a>
</body>
</html>

它在完整窗口中打开文件,而不是在父框架中打开。 Wats错误的代码??

0 个答案:

没有答案
相关问题