I’m looking for something similar to the a html a tag title text but I want the text to come from a separate file.
For example
<a href="xyz.htm" title="how do I retrieve this text from a file?">whatever</a>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Javascript cannot read from file.
But anyway that is not what you want. You most probably want the text to come from a file in the server, rather than a file from the client machine.
You need server side technologies (PHP, ASP, JSP/java…) for this.
UPDATE:
Ok. You don’t have server side technologies. So this is not directly possible. But, first: how are yout HTML pages generated? Hand-coded or generated by some system (a CMS, for instance)?
If you are hand coding your HTML, you need the content of the “title” dynamically (from a file), then this is not possible. HTML or related technologies cannot “directly” read a file, and definitely not a file on the server.
If your HTML is generated by some sort of a generator, then possibly you can integrate this with that system itself.
I absolutely have no idea about the requirements, but is it possible to generate the HTML file based on your “configuration” file with the text everytime the text file changes.
BTW, how complex is your HTML?