convert html code to javascript code

Discussion in 'JavaScript' started by Arians, Mar 24, 2007.

  1. #1
    how i can convert my html code to javascript code ?:)
     
    Arians, Mar 24, 2007 IP
  2. Adi

    Adi Peon

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    HTML and JavaScript are 2 different technologies - you should not try to convert one to the other.

    Use JavaScript within HTML to add dynamic abilities to the page like hide/display an HTML element .
    You can also use JavaScript to create new HTML elements like rows in a table or simply "write" HTML code to the page using document.write("test") function.
     
    Adi, Mar 24, 2007 IP
  3. ajsa52

    ajsa52 Well-Known Member

    Messages:
    3,426
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    160
    #3
    If you want to convert existing HTML code into document.write() sentences to make that HTML code,
    you can use this online free conversion tool
    .
    If you're looking for another technique like AJAX, please explain your needs better
    .
     
    ajsa52, Mar 24, 2007 IP
  4. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #4
    krakjoe, Mar 24, 2007 IP