Wikipedia talk:User scripts/Guide: Difference between revisions

Content deleted Content added
Futher development: AlexSm: Ah okay, agreed.
Moving elements: new section
Line 15:
:::Ah, I see. Yeah, the DHTML section is somewhat confusing. But some of the text in there is useful for beginners and I am anyway not knowledgeable enough in JavaScript to tinker with that section. So I'll just move it to the end of the page for now.
:::--[[User:Davidgothberg|David Göthberg]] ([[User talk:Davidgothberg|talk]]) 22:22, 23 September 2008 (UTC)
 
== Moving elements ==
 
Today User:Zvn edited section "Removing elements". He changed this:
:''To move an element simply attach it in another place with <tt>appendChild()</tt> or <tt>insertBefore()</tt>.''
to this:
:''To move an element simply attach it in another place with <tt>appendChild()</tt> or <tt>insertBefore()</tt> and remove the original element with <tt>removeChild()</tt>.''
I am just a beginner javacoder, but I think that is wrong. There is no need to remove the item from the old position manually, that happens automatically when one has inserted it in a new position.
 
--[[User:Davidgothberg|David Göthberg]] ([[User talk:Davidgothberg|talk]]) 10:32, 8 December 2009 (UTC)