I want to make a simple script to post a tweet from a Textbox when the user click on the Submit button, but all using Javascript, without any server-side language. How may I do this?
['https://Stackoverflow.com/questions/4641495', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/126353/']
What you want to use is Twitter Anywhere, develop by twitter

<http://dev.twitter.com/anywhere>

This handles all OAuth, create the box and post the tweet.
<http://www.saschakimmel.com/2009/05/how-to-create-a-dynamic-tweet-this-button-with-javascript/>
But just change the document.title to the location of your textbox