Share via


Webs.Open Method

SharePoint Designer Developer Reference

Opens a Web page and returns a Web object.

Syntax

expression.Open(szWebUrl, UserName, Password, WebOpenFlags)

expression   Required. A variable that represents a Webs collection.

Parameters

Name Required/Optional Data Type Description
szWebUrl Required String The base URL of the Web site, such as "C:\My Web Sites". This can be any absolute URL, such as "http://web_server" or "file://file_system" for disk-based Web sites.
UserName Optional String The logon name of the user.
Password Optional String A designated string of characters to validate access to the specified Web site.
WebOpenFlags Optional WebOpenFlags Specifies whether to open the Web page in the same window or in a new window. The default value is OpenInWindow.

Return Value
Web

Security

See Also