Visit W

In this example we change the text and the URL of a hyperlink. We also change the target attribute. The target attribute is by default set to "_self", which means that the link will open in the same window. By setting the target attribute to "_blank", the link will open in a new window.

Visit DOM TUTORIAL

Visit W3Schools.com

(Use Alt + a to give focus to the link.)

MY TITLE The title of the document is: The URL of this document is:

The referrer property returns the URL of the document that loaded this document.

The referrer of this document is: The domain name for this site is:
Your name:
Your car:

To access an item in a collection you can either use the number or the name of the item:




<-------------------Form and Form Input Objects ---->
Enter your name:
Enter your password:

Remember password

Select your favorite browser:
Internet Explorer
Firefox



(Use Alt + accesskey to give focus to the different form fields.)

function enableScrolling() { parent.document.getElementById("leftFrame").scrolling="yes" parent.document.getElementById("rightFrame").scrolling="yes" } function disableScrolling() { parent.document.getElementById("leftFrame").scrolling="no" parent.document.getElementById("rightFrame").scrolling="no" }

Right-click inside the frames and select "View Source" to see the source code.

Frame A