Html: open the page in a new window. target="_blanck" - is that a typo? -
Html: open the page in a new window. target="_blanck" - is that a typo? -
i have found (with letter c)
target="_blanck"
instead of expected
target="_blank"
in project written else. works , opens link in new window. typo or missing something?
the target
attribute refers contents of link loaded in browser. browser set contents of page within window/frame name, long it's not 1 of special values _blank
, _self
, _top
or _parent
. see frame target references section in w3 spec.
except reserved names listed below, frame target names (%frametarget; in dtd) must begin alphabetic character (a-za-z). user agents should ignore other target names.
the next target names reserved , have special meanings.
_blank user agent should load designated document in new, unnamed window. _self user agent should load document in same frame element refers target. _parent user agent should load document immediate frameset parent of current frame. value equivalent _self if current frame has no parent. _top user agent should load document full, original window (thus canceling other frames). value equivalent _self if current frame has no parent.
so, if link supposed open new window, should _blank
. if there several links same target=_blanck
, might on purpose if they're supposed replace contents of same window.
see this fiddle:
<a href="http://www.stackoverflow.com" target="_blank">this opens in new window</a> <a href="http://www.google.com" target="_blanck">this opens google in given window</a> <a href="http://www.stackoverflow.com" target="_blanck">this opens in same given window</a>
html window target
Comments
Post a Comment