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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:51:26+00:00 2026-06-15T08:51:26+00:00

Im looking for my webpage to jump to an iframe when someone click. I’ve

  • 0

Im looking for my webpage to jump to an iframe when someone click. I’ve found one solution which works pretty well which is this: http://jsfiddle.net/RGjCL/4/

<ul>
    <li>
        <a href="javascript:void(0)" onclick="IFrameScroll('http://www.asdf.com')">Class Name</a>
    </li>
 </ul>

<script type="text/javascript">
    function IFrameScroll(link){
        window.myIframe.location=link;
        window.location.hash='myIframe'
    }
</script>
<IFRAME id = "myframe"  onload = "setIframeHeight( this.id )" name="myIframe">

I’ve tried on my web and it partially works except for the fact it scrolls to the iframe before it loads so it doesn’t goes that far to the bottom because once the iframe its loaded the page fully extends.

The web in question is the following: http://www.clavederock.com.ar –
The links are under the tabs “Quienes Somos” “Programacion” and “Archivo”.

I hope i made myself clear so you can help me. Thanks in advance!

  • 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-15T08:51:27+00:00Added an answer on June 15, 2026 at 8:51 am

    Try moving window.location.hash='myIframe' from the function IFrameScroll() to setIFrameHeight(), so you’ll change the hash once the iframe have the desired size.

    EDIT #3:

    Since you need to wait until iframe is loaded in order to resize it and window.location.hash doesn’t works the second time in chrome, you can try this:

    <script type="text/javascript">
        function IFrameScroll(link){
    
            window.myIframe.onload = function() {
                // this will ensure that the height will be updated after load
                setIframeHeight('myIframe');
                // This works on FF and IE, and let users to bookmark
                window.location.hash='myIframe';
                // and this will allow it to scroll the second time for chrome
                document.getElementById('myIframe').scrollIntoView(true);
            }
    
            window.myIframe.location=link;
    
        }
    </script>
    

    I really hope this solve your problem 🙂

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

Sidebar

Related Questions

i'm looking to parse the real time rates from this webpage: http://www.truefx.com/ into my
I'm looking for a way to place a webpage in an iframe like frame,
Frankly speaking. I'm looking for a specific video course webpage which I visited few
Is this possible using jQuery/PHP? I am looking to have my webpage automatically go
Looking for a cross-browser way to log a user off a webpage which uses
I'm looking for a way to display an image on a webpage. This image
Hi i been looking a webpage and i found out a a website with
I'm looking to open a given webpage via VBA. I can do this using:
I'm looking to create a webpage that will reflect the status of one of
I'm looking to load a webpage into an iframe via a string output from

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.