I want to know how to write a bit of script that will allow me to post a announcement on the top of a page with a form, so that it changes for everyone.
//this is my form
<input type='text' id='userInput1' />
<input type='button' onclick='announcement()' value='Set Announcement' size='30'>
var userInput = document.getElementById('userInput1').value;
document.getElementById('boldStuff1').innerHTML = userInput;
So what it dose is, when you type something into the input box and hit submit, it changes the announcement for everybody. How can i do this?