JavaScript Tutorial





Español Français 中文 Deutsch Portuguese Japanese nederlands
   
 
Java-Script Tutorial
Introduction Introduction
Variables Variables
Operators Operators
Statements Statements
Loops Loops
Functions Functions
Objects Objects
Arrays Arrays
Cookies JS Cookies
Browser Objects Browser Objects
Form DOM Form DOM
Style Objects DOM Style Objects
Forums Ask Your Doubts
Scraps More about Javascript
Feedback Feedback
 




Document Property & Method


Tutorials Javascript

Topic

Document object, properties and method/function associated with it!



Explanation
continue......
more of the properties that can be used with document object to get string url, page modified time, etc..
PropertyDescriptionExample
linkColor Property "linkColor" is used to set/get value of link attribute of body tag. Code To Get:
var dd = document.linkColor;

Code To Set:
document.linkColor = "afefaa";

Test
lastModified Property "lastModified" is used to get the time at which the document or web page was last modified. Code To Get:
var dd = document.lastModified;

Test
referrer Property "referrer" is used to get the url or link of the referrer document or web page from which the user has reached this page. Code To Get:
var dd = document.referrer;

Test
title Property "title" is used to set or get title of the document using javascript. Code To Get:
var dd = document.getElementsByTagName('title')[0].text;

Code To Set:
document.title = "test title";

Test
url Property "url" is used to get the url string of current page or document. Code To Get:
var dd = document.url;

Test
vlinkColor Property "vlinkColor" is used to get/set the "visited link" color attribute of body tag. Code To Get:
var dd = document.vlinkColor;

Code To Set:
document.vlinkColor = "afafdd";

Test





A Note
Javascript (JS) is one of the most used languages in the world. Some times spelled as Java Script. Hope you enjoy this tutorial. Do send your feedback or suggestions on this javascript or java script tutorial. This is a copyright content.

Other Links

web hosting