'write()' Example : document : Javascript Objects : JavaScript DHTML examples (example source code) Organized by topic

JavaScript DHTML
C++
PHP


JavaScript DHTML  »  Javascript Objects   » [  document  ]   
 



'write()' Example

Please note that some example is only working under IE or Firefox.

    
<html>
<body>
<script language="JavaScript">
function function1() {
    var m = "<p>This is a sample text. First paragraph.</p>";
    m += "<p>This is the second paragraph.</p>"
    document.write(m)
}
</script>
<input type="button" value="Add some HTML content to this page" onClick="function1();">
</body>
</html>

    
      
      
Related examples in the same category
1.  'expando' Example
2.  Active Element
3.  Document 'URLUnencoded' Example
4.  'URL' Example
5.  Create a Comment
6.  'writeln()' Example
7.  Execute Command
8.  Document parentWindow
9.  Document referrer
10.  Document compatMode
11.  Document design Mode
12.  Document doctype
13.  Document Domain
14.  Document title Example
15.  Document Link color
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.