Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading HREF values from a text file

Status
Not open for further replies.

ChrisRChamberlain

Programmer
Mar 23, 2000
3,392
GB
Am developing an .htm file to use as a template for the topic files of an HTML Help project.

<A HREF=&quot; TITLE=&quot;HTML forum at Tek-Tips.com.&quot;>Visit the HTML forum</A>

In the above code example, the web-site address, &quot; is as yet unknown, but the code is included in the footer of the template .htm file, and thus in every topic file.

Can you effect a global change throughout the HTML Help project, FI, by reading a text file to get the value, &quot; instead of hard coding it?

Or is there a better way anyway?

Thanks in anticipation

HTH

Chris [pc2]
 
You could try something like this:

<html>
<body>
Template
<script src=&quot;include.js&quot;></script>
</body>
</html>

------------include.js------------------
document.writeln('<A HREF=&quot; TITLE=&quot;HTML forum at Tek-Tips.com.&quot;>Visit the HTML forum</A>');
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top