Wednesday, 05 November 2008

  • JavaScript - example, methods and properties.

     

    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)

    Leave / read comments

  • Choose Identity

  • Give eProps (?)

  • New! You can now edit your comments for 15 minutes after submitting.

Who recommended?