Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9260739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:58:14+00:00 2026-06-18T12:58:14+00:00

I use this JavaScript code to hide the address bar in mobile Safari: window.addEventListener(load,function()

  • 0

I use this JavaScript code to hide the address bar in mobile Safari:

window.addEventListener("load",function() {
    setTimeout(function(){
        window.scrollTo(0, 1);
    }, 0);
});

It works great and doesn’t do any harm to other browsers. Only Internet Explorer 8 (which is the oldest IE I have to support) seems to be having problems with it as any JavaScript that comes after that code block isn’t executed anymore. Do you have any idea why?

I already googled that some people have problems with scrollTo in IE8, but the only resource that could have been helpful was a link to a bug report for jQuery 1.3.3 or something like that. As I am using jQuery 1.9.0 I believe that problem was solved in the meantime.

By the way: Why wasn’t I able to find the scrollTo method in the jQuery docs? It seems to be some kind of plugin?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T12:58:15+00:00Added an answer on June 18, 2026 at 12:58 pm

    Damn, that was a tricky one! But the problem simply was that IE8 does not know addEventListener – can you imagine that? Instead, IE8 needs attachEvent, see here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I select an element by name in Javascript, I usually use this code:
I am working with session timeout in javascript. I use this code for the
I'm trying to get json code from page.I use this private function __ajax_admin_search($username =
Javascript loop continue,or break to display? This is my code use for show or
i use this javascript syntax for validating a checkbox... alert(document.getElementById(ctl00_ContentPlaceHolder1_Chkreg).checked); if (document.getElementById(ctl00_ContentPlaceHolder1_Chkreg).checked == false)
In order to put e-mail addresses on my sites, I use this Javascript :
When I try to use this in my Javascript prototype like so: Array.prototype.sample =
I use this script to call a javascript from codebehind. ClientScript.RegisterStartupScript(this.GetType(), Exist, <script language='javascript'>ConfirmRedirect('
I use NestedSortableWidget . I use this scripts: <script type=text/javascript src=../../Scripts/jquery-1.js></script> <script type=text/javascript src=../../Scripts/interface-1.js></script>
Is it possible to get the value from a JavaScript variable and use this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.