Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does target "_help" do?

Tags:

html

hyperlink

I'm having hard time to find information related to target="_help" on the Internet. So, when I have an HTMLAnchorElement like this:

<a href="http://www.google.com" target="_help"></a>

I can see that this thing is actually behaving like target="_blank", but anything else?

Could not find anything on MDN. Also no mention on the HTML5 Spec and detailed W3C Browsing Context page.

like image 352
Andry Avatar asked Feb 04 '16 08:02

Andry


1 Answers

According to the MDN:

This attribute specifies where to display the linked resource. In HTML4, this is the name of, or a keyword for, a frame. In HTML5, it is a name of, or keyword for, a browsing context (for example, tab, window, or inline frame).

That means that click on a

<a href="http://www.google.com" target="_help"></a>

instructs iframe named _help to set src value to the value of href. The example below loads youtube video:

<a href="http://www.youtube.com/embed/M7lc1UVf-VE" target="_help">Help</a>
<iframe name="_help"></iframe>

JSBin.

On a side note, this feature looks pretty obscure, I did not know about it before your question.

like image 149
Klaster_1 Avatar answered Nov 15 '22 07:11

Klaster_1