Quote:
Originally Posted by CarolineBogart
As above, plus, you can't do that in javascript unless you set javascript as a server side language which I've never seen done. Pages (with your links) are served by the server.
|
Granted JS is CLIENT side, not SERVER side. But, why cant you have in a JS file:
Code:
<html>
<head>
<title>V7N</title>
</head>
<body>
<script src="links.js" language="javascript" type="text/javascript"></script>
</body>
</html>
Code:
document.write("<a href='link1.htm'>Link 1</a><br />");
document.write("<a href='link2.htm'>Link 2</a><br />");
document.write("<a href='link3.htm'>Link 3</a><br />");
From here you will need the
Code:
<script src="links.js" language="javascript" type="text/javascript"></script>
in every page's nav section
Edit "links.js" as needed....