|
Dynamic HTML text
I have a webpage with a link on it to an HTML file, but I want the user to be able to download the HTML file instead of open it by right-clicking the link and selecting Save Target As... (IE) or Save Link As... (Firefox). The page has instructions for downloading the file, but I want the context-menu item label (Save Target As... or Save Link As...) to dynamically change depending on the user's browser.
What is the best way using JavaScript and HTML to do this?
Maybe a placeholder tag in the HTML? If so, which tag?
|