Welcome to Discuss Everything Forums...

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.


 

Tags for this Thread

+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    NellyE's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Sep 2009
    Posts
    14
    Downloads
    0
    Uploads
    0
    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.

  2. #2
    BadBoy's Avatar
    Newbie - NLP

    Status
    Offline
    Join Date
    Jul 2009
    Posts
    17
    Downloads
    0
    Uploads
    0

    Save file name with <a> in HTML?

    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?

  3. #3
    Venkey's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Aug 2009
    Posts
    2
    Downloads
    0
    Uploads
    0
    i think there is not possible

  4. #4
    Crizzle Gizzle's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Jul 2009
    Posts
    10
    Downloads
    0
    Uploads
    0
    No because Windows, Linux, and Apple allow the user to rename the file to whatever they want. There is no way to change this.

  5. #5
    Crizzle Gizzle's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Jul 2009
    Posts
    10
    Downloads
    0
    Uploads
    0
    No because Windows, Linux, and Apple allow the user to rename the file to whatever they want. There is no way to change this.

  6. #6
    mrankin.matt's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Jul 2009
    Posts
    3
    Downloads
    0
    Uploads
    0
    try using the alt attribute in you a tag.

    <a href="1.html" alt="Link 1">Link 1</a></br>

 

 

Quick Reply Quick Reply

Click here to log in


What color is our footer?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How do I save this Notepad file to .html?
    By tsuchikage23 in forum Discuss HTML
    Replies: 2
    Last Post: 12-27-2011, 01:57 PM
  2. How to save html file in windows 7!?
    By Blake Morris in forum Discuss HTML
    Replies: 1
    Last Post: 11-27-2011, 12:31 PM
  3. I am trying to save my PSD file "save as" HTML in photoshop, but the option is...
    By yp_jennifer_32 in forum Ælternate Reality - The PhotoChop Shop
    Replies: 0
    Last Post: 08-17-2009, 03:28 PM
  4. Replies: 0
    Last Post: 07-16-2009, 08:30 PM
  5. What program to use to save file as .html?
    By alfristoncollege in forum Discuss HTML
    Replies: 0
    Last Post: 03-25-2009, 03:20 AM

Bookmarks

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •