href attribute for link (JavaScript 1.0)

Complete text of the URL of the link.

Values

Example
No example available.

Examples having uses of JavaScript attribute 'href'

1 votes
11k views

CSS Pseudo on link tag

In this example, a hyperlink with a destination of "#" is set to display different colouring for different properties.
2 votes
11k views

HTML Link Types

Links are found in nearly all Web pages. Links allow users to click their way from page to page. Examples using the href and target example.
4 votes
10k views

HTML Attributes

HTML attributes provide additional information about HTML elements. Some HTML elements does not require attributes but other needs it to work correctly. The link address is specified in the href attribute for the <a> tag.
4 votes
2k views

HTML Link

This HTML element defines a hyperlink, the named target destination for a hyperlink, or both.
0 votes
2k views

HTML button

The HTML button tag inserts a button control in a form or document. Differently from the HTML input element using "button" in the "type" attribute, this button can contain other HTML elements like the second button in this example.
0 votes
2k views

HTML Element with JavaScript code

<a> tag has a "onclick" event that is triggered when clicked. This is a good place to use JavaScript to build nire interactivity into your web page.
1 votes
1k views

HTML Href

Href (Hypertext Reference) is an HTML attribute of an anchor (link) tag that requires a valid URL in order to properly direct a user to a different location on current webpage or external webpage.
0 votes
1k views

HTML image link

If you want to make an image work as a link, the method is exactly the same as with texts. You simply place the <a href> and the </a> tags on each side of the image.
0 votes
1k views

CSS Display block

CSS display block property displays the HTML elements in the block.
1 votes
1k views

HTML Script

HTML script tag is used to define an section with javascript. In our example we have created two javascript function in the header. Note that each link shows a different way of calling the function.
0 votes
1k views

CSS Pseudo

CSS pseudo-classes are used to add special effects to some selectors.
0 votes
1k views

HTML Base

The <base> tag specifies a default address or a default target for all links on a page
0 votes
1k views

CSS attribute selector

This selector is used to apply the CSS property on the element which matches the value with the give attribute.
0 votes
1k views

Complete Web Page Example

The HTML head Element The head element is a container for all the head elements. Elements inside <head> can include scripts, instruct the browser where to find style sheets, provide meta information, and more. The following tags can be added to the head section: <title>, <base>, <link>, <meta>, <script>, and <style>.
0 votes
1k views

HTML Link

The <link> tag defines the relationship between a document and an external resource. The <link> tag is most used to link to style sheets:
0 votes
1k views

JavaScript Link Object

The link object is used to include the external file in the web page. This tag must be inside the head tag of the page. Here is the example of the link that give the type of the external sheet.
0 votes
1k views

Delete JavaScript Cookie

Enables you to remove a client cookie with JavaScript. We remove the cookie by setting the expiration date for the cookie back in time.