Output HTML in JavaScript : Document « Development « JavaScript DHTML

JavaScript DHTML
1. Ajax Layer
2. Data Type
3. Date Time
4. Development
5. Document
6. Event
7. Event onMethod
8. Form Control
9. GUI Components
10. HTML
11. Javascript Collections
12. Javascript Objects
13. Language Basics
14. Node Operation
15. Object Oriented
16. Page Components
17. Security
18. Style Layout
19. Table
20. Utilities
21. Window Browser
Microsoft Office Word 2007 Tutorial
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
C# / C Sharp
C# / CSharp Tutorial
ASP.Net
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
PHP
Python
SQL Server / T-SQL
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
JavaScript DHTML » Development » Document 
Output HTML in JavaScript


<HTML>
<BODY>

<SCRIPT language="JavaScript">
<!-- 

document.write("<H1>"+document.title+"</H1>");

document.write("The background color is "+document.bgColor+"<BR>");
document.write("The text color is "+document.fgColor+"<BR>");
document.write("The link color is "+document.linkColor+"<BR>");
document.write("The visited link color is "+document.vlinkColor+"<BR>")
document.write("The active link color is "+document.alinkColor);

document.write("<P>");
document.write("Last Modified: "+document.lastModified);
document.write("<P>");
document.write("URL: "+document.URL);

//-->
</SCRIPT>

</BODY>

</HTML>

           
       
Related examples in the same category
1. Display info in a new page
2. Recursively reverse all nodes beneath Node n, and reverse Text nodes
3. Reverse the order of the children of Node (document)
4. Open a new document and add some text
5. Get element by name: getElementsByName()
6. Get a specified element using getElementById()
7. Title of a document
8. Referrer of a document (URL of the document)
9. Hide Email Address
10. Convert space to URL encode
11. document last Modified Property in Another Format
12. Checking document referrer
13. Make button (control) visible or invisible
14. Opening a New URL
15.  HTML Page with Immediate Script Statements
16. Using document.write() on the Current Window
17. Using document.write() on Another Window
18. Methods and Properties of the Document Object
w_w_w_.__j__a__v___a_2_s___.__c__o_m__ | Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.