.JS files can include only script, nothing more nothing less.
having HTML inside .JS files is not possible.
when you have this:
Code:
<script type="text/javascript" src="showhide1.js"></script>
the file being "included" is "compiled" by the browser so it must be valid JavaScript.
for example, <B> is not valid JavaScript command.
to include HTML contents you must use <iframe> tags, or server side code.
Edit: sorry, noticed just now it's old thread... anyway, the information above might still be helpful for others.
Shadow Wizard, July 28th, 2009 07:28 AM
Bookmarks