JavaScript - example, methods and properties.

Posted by admin on Nov 5, 2008 in Code, JavaScript, ajax, examples |

 

as some of you might know this is what it looks like when you view the source — the javascript would be the code in between these two <script> tags. 

<script language=”javascript”>

     .

     .

     .

</script>

Object Methods

 document.write: displays the text to the current webpage.

 history.go: navigation of the web browser to a location in the browser’s history. ie. back, next, refresh

 window.open: opens (file, request) in a new browser window.

Properties

  document.title: Title of the current page. (this is pretty important)

  document.bgcolor: Background color of the current page. (good idea)

  document.fgcolor: Foreground color of the current page. (good idea)

 document.lastmodified: Date the page was last modified. (wonder why we need this)



Tags: , , , , , , , , , , , , , , , , , , ,

Reply

Copyright © 2010 News Blog - TyndaleBookstore.com All rights reserved. Theme by Laptop Geek.