Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: include HTML

  1. #1
    New to the CF scene
    Join Date
    Feb 2004
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 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
    Regular Coder
    Join Date
    Sep 2002
    Location
    Scotland
    Posts
    407
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #3
    New to the CF scene
    Join Date
    Feb 2004
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks,
    what about VB script. Can you use VB functions in JS?

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    Nashua, NH
    Posts
    1,724
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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"


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •