• 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
    3467
    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.
    • jkreski
      jkreski @leocg last edited by

      @leocg yes! Tap on Google map (lower left of webpage). That should fetch current conditions and forecast for that location and trigger the alert... should've included that in my original post - sorry!

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

        @jkreski That's the one I said worked fine in my first reply, you said there should be one from just loading the page. Which is it?

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

          @sgunhouse no, there is no alert when first loading the page. Only after you tap the Google Map and fetch the details for the upper left cell. Sorry if I mislead you!

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

            @jkreski When I click the Google map, I get an alert that says "Made it to here!" no problem. I get it even with Opera's adblocking and tracking protection turned on.

            Does the alert work fine in a private window?

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

              @burnout426 what is a private window?

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