HBCMS更多的中文手册参考:

AutoScan Method

DHTML文档教程

Attempts to connect to a Web server by passing the specified query through completion templates.

dhtml语法

external.AutoScan(sUserQuery, sURL [, sTarget])

Parameters

sUserQuery Required. Stringthat specifies a domain address that begins with www., and ends with .com, .org, .net, or .edu.
sURL Required. Stringthat specifies the Web page to display if the domain address created from sUserQuery is invalid. The default Microsoft® Internet Explorer error page is displayed if a value is not provided.
sTarget Optional. Stringthat 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.

  1. .com
  2. .org
  3. .net
  4. .edu
If no server is found, the document specified by the sURL parameter is displayed.

This method is not supported in introduction to html applications (htas).

DHTML代码范例

This example uses the AutoScan method to connect to the www.microsoft.com Web site.

window.external.AutoScan("microsoft","InvalidSite.htm","_main");

是否符合公共标准

There is no public standard that applies to this method.

Applies To

external