• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

including pages using javascript

There is no such thing really. What's called js includes is nothing but a .js file full of document.write's that's linked to the html.

Yes, it will work with NS4 but why is that a concern? There are probably more people that surf without javascript than people that use Netscape4...
 
include_file.js
Code:
document.write('stuff to include here');
page.html
Code:
<script language="javascript" src="include_file.js"></script>

...but don't do that.
 
---- you! I was just writing a nice demo with:

document.write('I don't care if you can read my page');
:biggrin2:

Yup. Don't do it if the included stuff is of any importance.
 
document.write('I don't care if you can read my page');
That's a nice error you've got there, Meow. See, I was sending him down the right path with a correctly written bad script. You, on the other hand... :p:D
 
Back
Top