Wikipedia:User scripts/Guide: Difference between revisions

Content deleted Content added
Zvn (talk | contribs)
Adding elements: These functions begin with small cap letters.
Zvn (talk | contribs)
Line 274:
=== Removing elements ===
 
To move an element simply attach it in another place with <tt>AppendChildappendChild()</tt> or <tt>InsertBeforeinsertBefore()</tt> and remove the original element with <tt>removeChild()</tt>.
 
To hide an element you can set its <code>style.display</code> to <code>none</code>: