Open specific location on html page

Posted on 2011-05-06
Last Modified: 2012-05-11
Is there any javascript that can open a specific location on the page? Some kind of pixels or defined map.. I'm not sure.
Question by:QuantumBG
    LVL 33

    Expert Comment

    Do you mean "open to a specific location on a page"?  Like using an anchor?

    Author Comment

    Yes, something like this:

                window.onload = function()
                      location.href = document.getElementById("autopen");
                <a href="" id="autopen"></a>

    But I want to determine specific location on the page.
    LVL 33

    Accepted Solution

    Take a look at this and see if it's close:

    Author Comment

    Yes, thank you

    Author Closing Comment


    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
    SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
    In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
    The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now