What is the purpose of the onclick event for a noscript tag?

After reading http://www.w3schools.com/tags/tag_noscript.asp the onclick event in the noscript tag got confused.

Does anyone know the purpose?

If there is no goal, why the hell do they keep it?

Thanks for any answers in advance.

+3
source share
3 answers

DOM 0 events are inherited by most html elements, I just don't think they did anything to prevent noscriptthese from being inherited, and that would be useless. I would not recommend using w3schools as a reference just for this purpose, because it involves bad practices, and sometimes the information is inaccurate, obscure and / or confusing.

#events he owns:

<!ENTITY % events
 "onclick     %Script;       #IMPLIED  -- a pointer button was clicked --
  ondblclick  %Script;       #IMPLIED  -- a pointer button was double clicked--
  onmousedown %Script;       #IMPLIED  -- a pointer button was pressed down --
  onmouseup   %Script;       #IMPLIED  -- a pointer button was released --
  onmouseover %Script;       #IMPLIED  -- a pointer was moved onto --
  onmousemove %Script;       #IMPLIED  -- a pointer was moved within --
  onmouseout  %Script;       #IMPLIED  -- a pointer was moved away --
  onkeypress  %Script;       #IMPLIED  -- a key was pressed and released --
  onkeydown   %Script;       #IMPLIED  -- a key was pressed down --
  onkeyup     %Script;       #IMPLIED  -- a key was released --"
  >
+3
source

A quote from the W3Schools link you provided:

" W3C, <noscript> . , noscript , , ". - http://www.w3schools.com/tags/tag%5Fnoscript.asp

onclick, ondblclick, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onkeydown, onkeypress onkeyup.

+5

, noscript , , onclick - base, bdo, br, frame, frameset, head, html, iframe, meta, param, script, .

+1

Source: https://habr.com/ru/post/1720421/


All Articles