Opening href in the same window
Can you tell me how to make links like <a href="">
open in the same window, and not in another one?
PS: how can I make it minimalistic, so that when clicking on each link of the form <a href="адрес"
, the adr\ec of the link, the file from the address, is loaded into the same container by Ajax?Thank you in advance!
0
2 answers
Use the target attribute. Description.
In your case, use either _self or _parent.
<p><a href="new.html" target="_blank">Открыть в новом окне</a></p>
<p><a href="new.html" target="_self">Открыть в этом окне</a></p>
2
Author: Ravt Service, 2012-08-15 06:49:53