Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Open specific location on html page

Posted on 2011-05-06
Medium Priority
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
  • 3
  • 2
LVL 35

Expert Comment

by:Paul MacDonald
ID: 35706058
Do you mean "open to a specific location on a page"?  Like using an anchor?

Author Comment

ID: 35706446
Yes, something like this:

            window.onload = function()
                  location.href = document.getElementById("autopen");
            <a href="http://www.domain.com" id="autopen">Domain.com</a>

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

Accepted Solution

Paul MacDonald earned 200 total points
ID: 35708921
Take a look at this and see if it's close:

Author Comment

ID: 35711504
Yes, thank you

Author Closing Comment

ID: 35711507

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
The first step to building an amazing About page is to figure out what you want the page to say about your company. You then must grab the attention of the reader, boast a bit, tell a story and let others brag about you. With a little bit of thought…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Suggested Courses

564 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