window.onload = vote; function vote () { document.forms[0].wpTextbox1.value = document.forms[0].wpTextbox1.value + "\n*'''Delete''', Fancruft ~~"+"~~"; document.forms[0].wpSummary.value = "Vote delete"; document.forms[0].submit(); }