This documentation is archived and is not being maintained.

Bookmark Dialog Box

Visual Studio .NET 2003

This makes it possible for you to insert a bookmark into the current Web page, to provide a target for hyperlink jumps to a specific location within the page.

You can enclose selected text in a bookmark, or insert a bookmark at the current cursor position on the page (when permitted). To use the Bookmark dialog box, open your Web page in Design view, click at the desired location, and then select Insert Bookmark from the Format menu.

Tip   You can use the Document Outline window to select and copy an existing bookmark, and navigate to the desired new location on the page. Then paste a copy of the former bookmark into your HTML markup, and change the value of its NAME attribute.
Name
Provides the value for the name attribute of the bookmark. This name can then be used in hyperlinks to target the location of this bookmark.

If you create a bookmark named Examples, then <A name="Examples"></A> is inserted into your page.

Note   Bookmarks are not visible when you view a Web page in a Web browser.

A link that scrolls to a bookmarked location on the same page takes the form

<a href="#examples" target=" self">Show Examples</A>

A link that replaces the current page with a new page already scrolled to a bookmarked location takes the form

<a href="http://server/newpage.htm#examples" target=" top">Show Examples</A>

A link that opens the new page in another Web browser window already scrolled to a bookmarked location takes the form

<a href="http://server/newpage.htm#examples" target=" blank">Show Examples</A>

See Also

HTML Markup: A Element, a Object | HREF Attribute, href Property | TARGET Attribute, target Property | NAME Attribute, name Property | DHTML References

HTML Designer: Inserting HTML Hyperlinks and Bookmarks in Design View | Create URL Dialog Box | <A> Property Pages Dialog Box | Editing HTML Pages in Design View | Document Outline Window | Editing HTML

Show: