Web Analytics Made Easy -
StatCounter include HTML - CodingForum

Announcement

Collapse
No announcement yet.

include HTML

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • include HTML

    How do you include HTML in java script.

    I have an include file written in JS but i need to include some fuctions written in HTML and VB script ... can someone please tell me if this is indeed possible and how to do it.

    Thanks in advance

  • #2
    you use the document.write tag to write it as an output:

    Code:
    document.write('<html><body><p>hello</p></body></html>');
    (think thats right - will need to double check)
    My body's a temple... and like those ancient Greek ones it's a ruin
    sweenster.co.uk

    Comment


    • #3
      Thanks,
      what about VB script. Can you use VB functions in JS?

      Comment


      • #4
        document.write - bad idea
        VB script - even worse idea

        Maybe if you start by telling what is that you are trying to accomplish (big picture) we could suggest a more appropriate solution...
        Vladdy | KL
        "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"

        Comment

        Working...
        X