The way I did this was to view source on the Google page, and I noted the "ID" of the query textbox on Google, heres the line:
code:
<input maxLength=256 size=55 name=q ...
Its the "name=" thats important, thats the programmatic identifier for the input textbox on google. GetElementbyID basically gets any element by its identifier (everything in DHTML is an element), it returns it as an control object, and from past experience, most every control has a Value property. Heres a quick link to GetElementById
GetElementByID
Its important to use the Document object for all this stuff, that is where all the good stuff is, heres a link on that:
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/objects/obj_document.asp
-Shawn
[ 14. May 2003, 04:45: Message edited by: Shawn ]