As for the home page

I have a web application. In that I have a link called "Home". When the user clicks on the start page of the web application, the index.jsp should be displayed on the same page. How can i do this. It should work in Internet Explorer.

I have the following html page.

<html>

<body bgcolor="#FFF8DC">

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


</body>
</html>

      

But it doesn't work.

-1


source to share


8 answers


<a href = "url"> home </a>



+4


source


To make your link open in the same window it is in, use:

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

      



Notice the underline in front of you. If you don't use it, your browser will look for a frame named "self".

+4


source


See http://htmlhelp.com/reference/html40/special/a.html

The TARGET attribute is used with frames to specify the frame in which the link should be displayed. If no frames with that name exist, the link is displayed in a new window, unless the user overrides it. Special frame names start with an underscore:

* _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

      

In HTML 4, the TARGET attribute value is case-insensitive, so _top and _TOP have the same meaning. However, most browsers treat the value of the TARGET attribute as case sensitive and do not recognize _TOP as having the special meaning of _top.

+4


source


Perhaps the problem is with the jsp page. Try using the full URL.

+1


source


You are just missing an underscore. "self" is treated like any other name label.

+1


source


Perhaps you intended TARGET = "_ parent"? This allows the link to be loaded into the parent frame

0


source


`target="_parent"`

      

Pay attention to _

in_parent

0


source


Alternatively, you can just omit the target

link attribute . Target defaults for the same browser window unless you specify otherwise.

0


source







All Articles