关于主页

时间:2009-01-09 10:13:12

标签: html

我有一个网络应用程序。在那里我有一个名为“家”的链接。当用户单击web应用程序的起始页面时,index.jsp应显示在同一页面中。我怎样才能做到这一点。它应该在Internet Explorer中工作。

我有以下html页面。

<html>

<body bgcolor="#FFF8DC">

<a href="index.jsp" target="parent" >HOME</a>


</body>
</html>

但它没有用。

8 个答案:

答案 0 :(得分:4)

&LT; a href =“url”&gt; home&lt; / a&gt;

答案 1 :(得分:4)

为了让您的链接在其所在的同一窗口中打开,请使用:

<a href="foo.html" target="_self">some text</a>

请注意自己之前的下划线。如果您不使用它,您的浏览器将查找名为“self”的框架。

答案 2 :(得分:4)

请参阅http://htmlhelp.com/reference/html40/special/a.html

TARGET属性与框架一起使用,以指定应在其中呈现链接的框架。如果不存在具有此类名称的帧,则链接将在新窗口中呈现,除非用户覆盖该链接。特殊框架名称以下划线开头:

* _blank renders the link in a new, unnamed window
* _self renders the link in the current frame (useful for overriding a BASE TARGET)
* _parent renders the link in the immediate FRAMESET parent
* _top renders the link in the full, unframed window

在HTML 4中,TARGET属性值不区分大小写,因此_top和_TOP都具有相同的含义。但是,大多数浏览器将TARGET属性值视为区分大小写,并且不认为_TOP具有_top的特殊含义。

答案 3 :(得分:1)

可能是解决jsp页面的问题。尝试使用完整的网址。

答案 4 :(得分:1)

你只是缺少一个下划线。 “self”被视为任何其他名称标签。

答案 5 :(得分:0)

也许你打算TARGET =“_ parent”?这允许链接加载父框架

答案 6 :(得分:0)

`target="_parent"`

注意_

中的_parent

答案 7 :(得分:0)

或者,您可以跳过链接的target属性。如果您没有另外指定,目标默认为相同的浏览器窗口。