Javascript : Write

Out of context: Reply #5

  • Started
  • Last post
  • 5 Responses
  • meph5040

    you say you need to write to a table but from the header.

    if you want to use Javascript in the body you have to call it.

    I would suggest making a function in the header

    function writemsg()
    {
    msg ="write this to table";
    document.write(msg)
    }

    then in the body call it
    [table]
    [tr]
    [td]
    [script] writemsg() [/script]
    [/td]
    [/tr]
    [/table]

    replace [ with

    if that doesn't clear it up give more details so that I can better understand the issue.

View thread