Anchor Examples: HTML DOM Anchor Object – Properties and Methods – Javascript Anchor Examples

Get 5 Hours of FREE PREMIUM Videos:

LearnVisualStudio.NET Free Preview


LearnVisualStudio.NET Free Preview: Declaring Variables and Assigning Values

I am a lifetime member of LearnVisualStudio.net and a Premium Plus member of dotNetVideos.net.

LearnVisualStudio.net is awesome because it grows in value each year as more videos are added.

dotNetVideos.net is also great because it focuses a lot on MS Certifications and practical interview questions.


- Wade Harvey (IdealProgrammer.com)

LearnVisualStudio Premium Videos

Visual C# 2010 for Absolute Beginners C# for Absolute Beginners C# for Absolute Beginners Study Guide Visual Basic for Absolute Beginners Visual Basic Express Edition Study Guide
Visual Basic 9.0 Language Enhancements Entity Framework Linq To Sql Windows Phone 7 Development Unit Testing
ASP.NET MVC 3 (In Progress) ASP.NET MVC Hands On Project ASP.NET For Absolute Beginners Visual Web Developer C# Study Guide Visual Web Developer VB.NET Study Guide
ASP.NET Controls Series ASP.NET AJAX ASP.NET Architecture Series ASP.NET Server Controls Silverlight 4.0
Windows Presentation Foundation Windows Forms Controls Visual Studio 2010 New Features Visual Studio Team System 2008 Visual Studio Team System Features
Getting Started With Sql Server Express Edition


dotNetVideos Premium Video Catalog

Interview Questions & Answers Windows AzureASP.NET MVC 4Windows Phone 7 (3 Videos)Visual Studio 2011 Application Lifecycle Management
LightSwitchHTML 5SOLIDVisual Studio Add-OnsVisual Studio 2010 ALM Lab Management
ASP.NET 4 Deep Dive Microsoft Enterprise Library 5 with ASP.NET 4 (10 Videos)Virtualization Techniques for Developer (5 Videos)Test Series - 70-519: Designing and Developing Web Applications Using Microsoft .NET Framework 4 (20+ Videos)
Test Series - 70-519: Supplemental70-513: Test Series (MCTS) Windows Communication Foundation 4 (20+ Videos)70-515:Web Applications Development with Microsoft .NET Framework 4 (20+ Videos)Test Series - 70-516: Accessing Data with Microsoft .NET Framework 4 (20+ Videos)Test Series: 70-432: Microsoft SQL Server 2008, Implementation and Maintenance (20+ Videos)
Test Series: 70-433: SQL Server AdministrationFrom Novice To Professional - C# (25 Videos)From Novice To Professional - VB.NET (25 Videos)




Premium (Not Free) Video Tutorials

Free Video Tutorials & Free Tools

Anchor Examples: HTML DOM Anchor Object – Properties and Methods – Javascript Anchor Examples

Purpose: – Illustrates the for working with the . An anchor allows you to create a hyperlink to another document or to a different point in the same document. The href property allows an anchor to link to another document, and the name property allows the anchor to link to another point within the current document. There are two ways to find anchors in a document: 1) use getElementById(); or 2) search through the anchors() array in the document object.

Anchor Object Examples

Standard Properties
classNameAllows you to access the class attribute of an element
dirAllows you to access the direction of text
langAllows you to access to the language code for an element
titleAllows you to access an element's advisory title
Anchor Object Properties
accessKeyAllows you to access a keyboard key to access a link
charsetAllows you to access the character-set of the linked resource
coordsAllows you to access a comma-separated list with coordinates of a link in an image-map
hrefAllows you to access the URL of the hyperlink
hreflangAllows you to access the language code of the linked resource
idAllows you to access the id of a link
innerHTMLAllows you to access the text of a hyperlink
nameAllows you to access the name of a link
relAllows you to access the relationship between the current document and the target URL
revAllows you to access the relationship between the target URL and the current document
shapeAllows you to access the shape of a link in an image-map
tabIndexAllows you to access the tab order for a link
targetAllows you to access the where to open a link
typeAllows you to access the MIME type of the linked resource
Anchor Object Methods
blur()Removes focus from the link
focus()Sets the focus on the link

Related posts:

  1. HTML DOM Document Object Collections, Properties, and Methods HTML DOM Document Object Examples for Collections, Properties, and Methods...
  2. A Tag Example – HTML Syntax – Anchor Examples A Tag Example - HTML Syntax - Anchor Examples...
  3. URL Example JavaScript (JS): HTML DOM Objects – Document Object Properties – URL Example JavaScript (JS) URL Example JavaScript (JS): HTML DOM Objects - Document Object...
  4. Referrer Example JavaScript (JS): HTML DOM Objects – Document Object Properties – Referrer Example JavaScript (JS) Referrer Example JavaScript (JS): HTML DOM Objects - Document Object...
  5. Title Example JavaScript (JS): HTML DOM Objects – Document Object Properties – Title Example JavaScript (JS) Title Example JavaScript (JS): HTML DOM Objects - Document Object...

Related posts brought to you by Yet Another Related Posts Plugin.

Comments

One Response to “Anchor Examples: HTML DOM Anchor Object – Properties and Methods – Javascript Anchor Examples”
  1. Me says:

    Wonderful!

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!

Powered by WP Hashcash

This blog uses the cross-linker plugin developed by Web-Developers.Net