...

View Full Version : include HTML



bond1
02-10-2004, 11:27 AM
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

sweenster
02-10-2004, 01:53 PM
you use the document.write tag to write it as an output:



document.write('<html><body><p>hello</p></body></html>');


(think thats right - will need to double check)

bond1
02-10-2004, 03:44 PM
Thanks,
what about VB script. Can you use VB functions in JS?

Vladdy
02-10-2004, 03:59 PM
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...



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum