Save file name with <a> in HTML?

NellyE

New member
It is not possible; but there is a very easy solution. Rename your files as follows
link_2.html instead of 2.html
link_3.html instead of 3.html

and just update your code to

<a href="link_2.html"> Link 2</a><br/>
<a href="link_3.html"> Link 3</a><br/>

What they click on save file name it will come up as Link_2.html or Link 2.html dependent on the browser used.
 
I have a html file that contains <a> tags like
<a href="1.html"> Link 1</a><br/>
<a href="2.html"> Link 2</a><br/>
<a href="3.html"> Link 3</a><br/>
What I want is when user right click on those link and try to save the files(save link as or save pase as) , the save file name in will be shown as "Link 1.html", "link 2.html" not '1.html', '2.html'

is there any tag attribute or javascript code or any alternative that can do so?
 
Back
Top