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..
Property
Description
Example
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.title;
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
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.