• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    Clicking text links wants to save

    Opera for Windows
    2
    14
    1702
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • leocg
      leocg Moderator Volunteer @Helvetica2 last edited by

      @helvetica2 Current Opera version is 78, you should upgrade.

      Reply Quote 0
        1 Reply Last reply
      • leocg
        leocg Moderator Volunteer @Helvetica2 last edited by leocg

        @helvetica2 What is the text file format? How is the behavior in other Chromium based browsers?

        Reply Quote 0
          Helvetica2 1 Reply Last reply
        • Helvetica2
          Helvetica2 @leocg last edited by

          @leocg
          In Firefox the text opens as it should.
          In Cliqz the text opens as it should.
          In Chrome it wants to save
          In Internet Explorer 11 it asks me whether I want to open it or save it.

          In the html file of an example coin (empress Annia Faustina page, ref. RIC 232), the text is linked to in the line

          <TR><TD bgcolor="#C0C0C0">RIC 232</td><td>Annia Faustina. AD 221. AR Denarius 3.23 g. Rome mint. Struck under Elagabalus. ANNIA FAVSTINA AVG, bare-headed and draped bust right / CONCORDIA, Elagabalus, laureate and togate, and Annia Faustina, diademed and draped, standing facing each other, clasping right hands; star between them. RIC IV 232 (Elagabalus); RSC 1. </td><td><A HREF="RIC_232.txt">Text</A></td><td><A HREF="RIC_232.jpg">Image</A></td></TR>
          

          The actual text file of RIC 232: (it is in plain text)

          Annia Faustina. AD 221. AR Denarius 3.23 g. Rome mint. Struck under Elagabalus. 
          
          ANNIA FAVSTINA AVG, bare-headed and draped bust right.
          CONCORDIA, Elagabalus, laureate and togate, and Annia 
          Faustina, diademed and draped, standing vis-à-vis, clasping right hands; star between them. 
          
          RIC IV 232 (Elagabalus); RSC 1.
          
          Extremely rare, the fifth and probably the finest known.
          
          CNG Triton XII auction, lot 704. Sold for $62,500
          
          Used with permission of CNG coins, www.cngcoins.com, July 2009
          

          It would be impossible to change anything in the actual files - there are over 80,000 text files for coin entries on my website!.
          So it seems that Chrome-based browsers handle text files differently that Firefox-based browsers.

          Reply Quote 0
            Helvetica2 1 Reply Last reply
          • Helvetica2
            Helvetica2 @Helvetica2 last edited by

            I also just tried Waterfox - it opens the text file just like I want it to.
            It's a shame that Chrome-based browsers do not give the user any option to force "Open text files in browser window" like you used to be able to do.
            So I am afraid that I will have to go back to using Firefox or Waterfox, because to have the txt file open directly in the browser is imperative to me in order for me to be able to work efficiently.
            However, if anyone does know of a workaround, I would be happy to hear of it.

            Reply Quote 0
              leocg 1 Reply Last reply
            • leocg
              leocg Moderator Volunteer @Helvetica2 last edited by

              @helvetica2 Usually .txt files open in Opera here, unless the site tells the browser to download the file.

              Reply Quote 0
                1 Reply Last reply
              • Helvetica2
                Helvetica2 last edited by leocg

                @leocg Yes it shows the text, when you are online on a website but not when you are using your browser for a local copy of your website which you have stored on your PC.

                If anyone wants to try it, simply write a short html file and a text file as follows and save them to your hard disk.

                1. html file, copy into a text editor and save to your PC as test.html:

                <html>
                <body>
                This is to test the <a href="test_text.txt"> Text file</a>
                </body>
                </html>

                1. Text file, copy into a text editor and save to the same folder as (1) above, as test_text.txt
                  What am I doing? Opening or Saving ?

                Then open the html file (you can usually drag and drop it into an empty Opera page) and see what the txt file does when you click on the "Text file" link.

                On Friday I downloaded and tested several different browsers, some Chrome-based, some Firefox-based. These were all tested with Local html files from my harddisk.
                All the Chrome-based browsers wanted to save the file.
                All the Firefox-based opened the txt file in the browser.

                Then I wondered whether it was because my website local files are on a pw-protected NAS. However, I have backups of all my website files on a non-pw-protected, internal harddisk, and a second backup on a non-pw-protected external harddisk. I tested a couple of different html files from both drives in Opera, with the same result, i.e. It wanted to download the .txt file.

                Reply Quote 0
                  leocg 1 Reply Last reply
                • leocg
                  leocg Moderator Volunteer @Helvetica2 last edited by

                  @helvetica2 Here it shows the txt file in Opera, Chrome and Firefox.

                  Reply Quote 0
                    Helvetica2 1 Reply Last reply
                  • Helvetica2
                    Helvetica2 @leocg last edited by leocg

                    @leocg Without downloading / saving first ?
                    I just got off another forum (not browser specific) and asked whether people could try the html and txt file I added above and give the result and their browser name.
                    17 members tried it. They use Windows 7, 8 and 10. (None use Linux)
                    8 users who use Chrome, Edge, Opera and Brave replied that it downloaded/saved the file first.
                    7 users who use Waterfox, Firefox, Pale Moon and Cliqz replied that it opened the text file immediately without saving.
                    The other two users tried it using Internet Explorer 11, which opened the text file immediately without saving it.
                    So it can't be something caused by a version of Windows. It may work "properly" on a Linux machine. It can't be the members' settings, otherwise the first group would all have their settings wrong, which would be too much of a coincidence, seeing as the members include programmers, IT folk etc.
                    One of the members included two snippets of information that he found on the internet:

                    1. *27 Dec 2020 — In Google Chrome, links to local files are

                    disabled, unlike IE. There is an extension allows you to
                    open a link to a local file by clicking it.*

                    1. *Google employee says they plan to implement in Chrome

                    the capability to "open" files basing on their extensions, but
                    that was in 2010.*

                    So, leocg, seeing as you apparently tested the test.html file in Chrome, can you see anything in your options or settings which they have in fact implemented which allows the direct, immediate opening of local files ? JPG files DO open immediately in my Chrome, just not the txt files.

                    Reply Quote 0
                      leocg 2 Replies Last reply
                    • leocg
                      leocg Moderator Volunteer @Helvetica2 last edited by

                      @helvetica2 Yes, without downloading it first.

                      Reply Quote 0
                        Helvetica2 1 Reply Last reply
                      • Helvetica2
                        Helvetica2 @leocg last edited by

                        @leocg Any idea why it doesn't on my PC ?

                        Reply Quote 0
                          Helvetica2 leocg 2 Replies Last reply
                        • Helvetica2
                          Helvetica2 @Helvetica2 last edited by

                          @helvetica2 said in Clicking text links wants to save:

                          @leocg Any idea why it doesn't open directly on my PC ? i.e. why it wants to save it first ?

                          Reply Quote 0
                            1 Reply Last reply
                          • leocg
                            leocg Moderator Volunteer @Helvetica2 last edited by

                            @helvetica2 I've noticed that when you download a file in Chrome, there is an option you can enable to always open that kind of file. Couldn't find anything in settings related to it.

                            Reply Quote 0
                              1 Reply Last reply
                            • leocg
                              leocg Moderator Volunteer @Helvetica2 last edited by

                              @helvetica2 At the moment, I don't have any.

                              Reply Quote 0
                                1 Reply Last reply
                              • Locked by  leocg leocg 
                              • First post
                                Last post

                              Computer browsers

                              • Opera for Windows
                              • Opera for Mac
                              • Opera for Linux
                              • Opera beta version
                              • Opera USB

                              Mobile browsers

                              • Opera for Android
                              • Opera Mini
                              • Opera Touch
                              • Opera for basic phones

                              • Add-ons
                              • Opera account
                              • Wallpapers
                              • Opera Ads

                              • Help & support
                              • Opera blogs
                              • Opera forums
                              • Dev.Opera

                              • Security
                              • Privacy
                              • Cookies Policy
                              • EULA
                              • Terms of Service

                              • About Opera
                              • Press info
                              • Jobs
                              • Investors
                              • Become a partner
                              • Contact us

                              Follow Opera

                              • Opera - Facebook
                              • Opera - Twitter
                              • Opera - YouTube
                              • Opera - LinkedIn
                              • Opera - Instagram

                              © Opera Software 1995-