• 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

    JavaScript alert on my site not showing up on Opera

    Opera for Windows
    6
    29
    3468
    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.
    • sgunhouse
      sgunhouse Moderator Volunteer @jkreski last edited by

      @jkreski A private window is a separate window with no access to cookies or history if you want to make sure no one is tracking you. It also disables all extensions, which makes it useful for checking if a "bug" might be due to some extension installed on your system. You should have the option on the right-click menu to open the link in a private window.

      Reply Quote 0
        jkreski Sherlockholmes007 3 Replies Last reply
      • jkreski
        jkreski @sgunhouse last edited by leocg

        @sgunhouse Oh wow! A whole new world! And Yes, I do get the alert in the private window once I click the Google Map. Now what? And thanks!

        Reply Quote 0
          1 Reply Last reply
        • jkreski
          jkreski @sgunhouse last edited by

          @sgunhouse I disabled all my extensions and restarted my browser and that did not correct the issue...

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

            @sgunhouse thanks for your information ☺️

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

              @jkreski Reset your flags and settings

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

                @leocg I have a lot of settings that supress notifications from other websites and would rather not do a global reset as I am only out to correct the behavior of this one website.

                Reply Quote 0
                  1 Reply Last reply
                • burnout426
                  burnout426 Volunteer last edited by

                  Goto the URL opera://settings/content/all, type chasertool.xyz in the search field and click "Delete displayed data". You might want to try the same thing with google.com and googleapis.com. Maybe even gstatic.com.

                  Goto the URL opera://settings/clearBrowserData and clear "cached images and files" for all time.

                  While on http://www.chasertool.xyz/GMapAddressToLatLng.html, click the badge at the left of the address field (usually a lock, but a triangle in this case), goto "site settings" and choose "reset permissions". Maybe goto just http://chasertool.xyz/ and try the same. You might want to try the same thing with https://www.google.com/.

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

                    @burnout426 Did step 1. No different. Did step 2. It Worked! Thank you for your help and patience!

                    Reply Quote 1
                      1 Reply Last reply
                    • jkreski
                      jkreski @burnout426 last edited by

                      @burnout426 Something is wrong... the cache is not refreshing. I got the alert but now do not want it. So I commented it out in my code, saved the file and uploaded it to my server. When I click the Google Map I DO get the alert which now is not wanted. I tried the Private page and it did NOT have the alert. I don't want to have to delete all my settings every time I make some change to my site and upload it. Can you think of any setting that I should be using to correct for this situation? Thanks! A fresh rabbit hole I suspect...

                      Reply Quote 0
                        burnout426 1 Reply Last reply
                      • burnout426
                        burnout426 Volunteer @jkreski last edited by burnout426

                        After making a change on the server, you can hit ctrl + F5 on the page to load the fresh version of the page.

                        Reply Quote 0
                          jkreski 1 Reply Last reply
                        • burnout426
                          burnout426 Volunteer last edited by

                          While testing the site at least, you can have the server send:

                          Cache-Control: no-cache, no-store, must-revalidate
                          

                          in the response header to the client if you want.

                          Reply Quote 0
                            jkreski 1 Reply Last reply
                          • jkreski
                            jkreski @burnout426 last edited by

                            @burnout426 Works like a charm! Is there a way to send this command:

                            1. On a cell phone - both Android and iPhone?
                            2. Via JavaScript code from within the webpage so when it loads it runs?
                            Reply Quote 0
                              1 Reply Last reply
                            • jkreski
                              jkreski @burnout426 last edited by

                              @burnout426 tried to get the Cache-Control command to work in the header of my webpage and couldn't get it to work. One did nothing and another try rendered a blank white page. Do I do this from within the webpage on the server from the HEAD section and should it be in a JavaScript script?

                              Reply Quote 0
                                burnout426 1 Reply Last reply
                              • burnout426
                                burnout426 Volunteer @jkreski last edited by

                                @jkreski You can try adding the following inside <head>.

                                <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
                                <meta http-equiv="Pragma" content="no-cache">
                                <meta http-equiv="Expires" content="0">
                                

                                to see if it helps. But, I was talking about doing it as an HTTP response header. Not sure how to do that for LiteSpeed that you're running, but you can search for info if the meta tags don't work.

                                Reply Quote 0
                                  jkreski 1 Reply Last reply
                                • jkreski
                                  jkreski @burnout426 last edited by

                                  @burnout426 I installed the Meta tags. They did not work after a Ctrl-F5. I chatted with my hostinger provider about the HTTP response header. They suggested a line of code to be put into my .httpaccess file. I did that but when I activated the file I couldn't get into my website because the file demanded a user ID and password and I didn't remember what I used so I re-deactivated it. They are still chatting with me but think it's the browser's cache that is the issue so I am not hopeful.

                                  Reply Quote 0
                                    burnout426 1 Reply Last reply
                                  • burnout426
                                    burnout426 Volunteer @jkreski last edited by burnout426

                                    @jkreski Ctrl + F5 doesn't need those tags to work. It just works on its own. Goto the URL opera://settings/keyboardShortcuts and take a look at the "reload without the cache" command.

                                    Not sure why it's not working for you.

                                    They suggested a line of code to be put into my .httpaccess file.

                                    It's usually .htaccess as mentioned at https://www.hostinger.com/tutorials/locate-and-create-htaccess, but understood about the password issue.

                                    It might be something like this:

                                    <IfModule mod_headers.c>
                                        Header set Cache-Control "no-cache, no-store, must-revalidate"
                                        Header set Pragma "no-cache"
                                        Header set Expires 0
                                    </IfModule>
                                    

                                    that you need to add to your .htaccess file (just while developing if you want). But, if you don't get things exactly right, pages on your site won't load.

                                    But, you really shouldn't have to do any of this and ctrl + F5 should be enough.

                                    However, see https://support.hostinger.com/en/articles/1583501-how-to-clear-cache.

                                    Reply Quote 0
                                      1 Reply Last reply
                                    • 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-