Forum Moderators: open
Another newbie question from my side...
I have a div that looks like:
<div id="mydiv" class="myclass">
.
.
.
whole lot of code/text
.
.
.
</div>
This div is displayed on almost all my pages. Can I move it out to a seperate folder and just reference it in each page, like I do with jscripts or stylesheets I.E
<link href="mystylesheet.css" rel="stylesheet" type="text/css">or
<script src="js_myjs.js" type="text/javascript"></script>
Thanks,
LL
You should NOT use JavaScript for this. Why? Because you'd be adding a JavaScript dependency to deliver content, which will make your content not accessible to everyone. Use JavaScript to "enhance" your content and provide behaviors, but don't use it the only means to deliver content.