Page 1 of 1

Open link in same window

Posted: Sat Oct 03, 2009 10:03 am
by Effect
So I am wondering how can I open a link in same window?

For example if I am having a website with link.

Code: Select all

<a href="item.php">Something</a>
How can I make it to open the link under it, without it opening it to a new window?

Re: Open link in same window

Posted: Sat Oct 03, 2009 10:34 am
by lipun4u
Effect wrote:So I am wondering how can I open a link in same window?

For example if I am having a website with link.

Code: Select all

<a href="item.php">Something</a>
How can I make it to open the link under it, without it opening it to a new window?
Use the target="_top" attribute

Code: Select all

 
<a href="item.php" target="_top" >Something</a>

Re: Open link in same window

Posted: Sat Oct 03, 2009 10:49 am
by Effect
lipun4u wrote:
Effect wrote:So I am wondering how can I open a link in same window?

For example if I am having a website with link.

Code: Select all

<a href="item.php">Something</a>
How can I make it to open the link under it, without it opening it to a new window?
Use the target="_top" attribute

Code: Select all

 
<a href="item.php" target="_top" >Something</a>
That does the same thing for me as the _self does.

Re: Open link in same window

Posted: Sat Oct 03, 2009 1:22 pm
by John Cartwright
How can I make it to open the link under it, without it opening it to a new window?
I think you'll need to explain what you are after again.

Re: Open link in same window

Posted: Sat Oct 03, 2009 5:50 pm
by ProXy_
You could also try:

Code: Select all

 
<a href="item.php" target="_parent" >Something</a>
 
this works for me in Firefox & internet explorer.
if this however doesn't solve your problem.
Try using javascript.