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 7447297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T12:33:57+00:00 2026-05-29T12:33:57+00:00

I have a wierd problem with Chrome. I have some go to no where

  • 0

I have a wierd problem with Chrome. I have some “go to no where links”

<a href="#">

that change an iframe content and there are more links in the iframe page.

So my problem is that when I click the “go to no where link” on the page and inside the iframe, Chrome automatically scrolls the link position.

Is there somthing I can do to cancel this effect?

Here is one of the contents of the link that is changing the content of the iframe:

var isChrome = (navigator.userAgent.indexOf("Chrome") >= 0);
function LoadFrame(url) {
    var oFrame = document.getElementById("iframeBoxID");
    if (isChrome) {
        oFrame.style.visibility = "hidden";
        oFrame.onload = function () {
            oFrame.style.visibility = "visible";
        };
    }
    oFrame.src = url;
}


$("#TestPage1").click(function () {
    LoadFrame("../galleryControlTest/TestPage1.aspx");
    changeFocusToIframe(this);
});

Is there somthing I can add to the script that will cancel this effect?
In IE and FireFox this doesn’t happen.

  • 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-05-29T12:34:02+00:00Added an answer on May 29, 2026 at 12:34 pm

    Add return false to your onlick event.

    $("#TestPage1").click(function () {
        LoadFrame("../galleryControlTest/TestPage1.aspx");
        changeFocusToIframe(this);
        return false;
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello I have a very weird problem in chrome I just cannot figure out!
I have a weird problem that i can't figure out a solution for: I've
So I have a weird problem. I have an <a/> tag that I am
Hey guys, I have a weird problem. I have an update system that refreshes
I have a weird Chrome problem. I'm using the following code and style to
I have an annoying display issue in IE (7/8). I have some tabs that
I most likely have the same problem as in this question: Weird Chrome prototype/jQuery
I have a an HTML5 video element that plays and communicates with a some
I have a very wierd problem. I created a login system with ajax and
I've ran into a wierd problem.. I'm doing some custom button-styling using jQuery and

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.