Wikipedia:User scripts/Guide: Difference between revisions

Content deleted Content added
Software: Extended cross-browser info, fixed a ṫyṗó
Dongiulio (talk | contribs)
Line 293:
<code>var txt = document.getElementById('wpTextbox1')</code>
 
You can add new text to the beginning: <code>txt += "new phrase" + txt</code> or to the end: <code>txt += "new phrase" + txt</code>
 
There is a function in wikibits.js that can add text to cursor position: <br/>