Can anyone point me in the right direction? I would like to share the same hypertext link across web pages from a .js file so if I make changes I only need to do it in the .js file. The link needs to display in the same column across the pages...I'm thinking maybe refernce a div id? Thanks for any suggestions.
This is how I got it to work. I created the container: moreLinks.js with this function: function Links(href){ this.href = ('<a href="moreLinks.html">More links</a>'); } Placed this in the head on my .html page:<script src="scripts/moreLinks.js" type="text/javascript"></script> </head> In the body where I wanted the hyperlink text to show I inserted: <script language="javascript" > Links(this.href); document.write(this.href); </script> The CSS style took care of the rest.