AutoScan Method
Attempts to connect to a Web server by passing the specified query through completion templates.
Syntax
window.external.AutoScan(sUserQuery [, sURL, sTarget])
Parameters
sUserQuery Required. String that specifies a domain address that begins with www., and ends with .com, .org, .net, or .edu. sURL Optional. String that specifies the Web page to display if the domain address created from sUserQuery is invalid. The default Internet Explorer error page is displayed if a value is not provided. sTarget Optional. String that specifies the target window or frame where the results are displayed. The default value is the current window.
Return Value
No return value.
Remarks
The domain suffixes added to the user query are located in the system registry under HKEY_LOCAL_MACHINE\software\microsoft\internet explorer\main\urltemplate. Each suffix is appended in the following order until an existing server is found.
If no server is found, the document specified by the sURL parameter is displayed.
- .com
- .org
- .net
- .edu
This method is not supported in html applications.
Example
This example uses the AutoScan method to connect to the www.microsoft.com Web site.
Sample Code
window.external.AutoScan("microsoft","InvalidSite.htm","_main");
Applies To
[ Object Name ] Platform Version Win16: Win32: Mac: Unix: WinCE: Version data is listed when the mouse hovers over a link, or the link has focus. external
Did you find this topic useful? Suggestions for other topics? write us!
© 1999 microsoft corporation. all rights reserved. terms of use.