Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Fri, 9 Mar 2007 11:50:58 -0000,    group: microsoft.public.inetsdk.programming.webbrowser_ctl        back       


How to get the text input fields in an HTML page?   
Hello

I want to access the text fields in an HTML page.  Can I get the name of the
fields?  Can I insert text into these fields?  How?
date: Fri, 9 Mar 2007 11:50:58 -0000   author:   Angus

Re: How to get the text input fields in an HTML page?   
"Angus"  wrote in message
news:%23c1r5EkYHHA.2316@TK2MSFTNGP04.phx.gbl
> I want to access the text fields in an HTML page.  Can I get the name
> of the fields?  Can I insert text into these fields?  How?

var allInputs = document.all.tags("input");
for (var i = 0; i < allInputs.length; ++i) {
    var input = allInputs[i];
    if (input.type == "text") input.value = "My name is " + input.name;
}

-- 
With best wishes,
    Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not 
necessarily a good idea. It is hard to be sure where they are going to 
land, and it could be dangerous sitting under them as they fly 
overhead. -- RFC 1925
date: Fri, 9 Mar 2007 07:35:31 -0500   author:   Igor Tandetnik

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us