+ 1
How can i create a html link which on clicking displays information but on same tab..like we use in fb etc
4 Answers
+ 4
Just don't use "target" attribute
+ 4
The target attribute specifies where to open the linked document.
The target attribute can have one of the following values:
_blank - Opens the linked document in a new window or tab
_self - Opens the linked document in the same window/tab as it was clicked (this is default)
_parent - Opens the linked document in the parent frame
_top - Opens the linked document in the full body of the window
framename - Opens the linked document in a named frame
+ 4
Note that in addition to the previous information given, you won't neccessarily have full control over whether it opens in the same tab or another tab or window, due to possible end user browser settings. For instance not using the target attribute will follow the default click setting that is defined for the browser in use. Also, as Baraa AB stated, using _blank will follow the browsers setting and either open in a new tab or in a new browser window.
Your best bet is use target="_self" as this should work under most if not all circumstances.
+ 1
How can can i add text to that link