Sunday, March 16, 2014

05. Java Script

9 comments:

  1. Replies
    1. This comment has been removed by the author.

      Delete
    2. We can put java script in
      1. Head
      2. Body
      3. External to HTML file

      Delete
    3. This comment has been removed by the author.

      Delete
    4. Three are 3 place we can put our javascript code:
      1) In head
      /* html
      head
      script type="text/javascript"
      /script
      /head
      /html
      */
      2) In body
      /*html
      body
      script type="text/javascript"
      /script
      /body
      /head
      */
      3) external in HTML file
      /*html
      head
      script src="myscript.js"
      /script
      /head
      /html
      */

      Delete
    5. i] In "head" section (javascript will run before the body portion for dynamic content)

      ii] In "body" section (when we want to use in some or all part of webpage)

      iii] With an external file (when we want to use script in multiple webpage)

      Delete
    6. JavaScript code can be placed in the body and the head sections of an HTML page and also EXTERNAL to the html file..

      Delete
  2. 1) after head tag
    2)after body tag
    3)external to the html file..

    ReplyDelete
  3. 1)
    in body
    body
    script type ="text/javascript"
    script statment
    /script
    /body

    2)
    in head element
    head
    script type="text/javascript"
    /script
    /head

    3)
    head
    script src="filename.js"
    /script
    /head

    ReplyDelete