how to jump to next anchor location without reload page in

Posted on 2006-03-27
Last Modified: 2008-01-16
 I have an page, aspx and aspx.cs to display bunch of images.
I like to jump to next or previous image by adding anchor like scroll up/down.
I am using javascrip to jump to any anchor which is working fine by:
function goNextAnchor(where)
    window.location.hash = where;
    // or window.location.href = "#" + where;

But problem is page reloading. how can I just jumpt to next anchor without reloading the page again because page is not static build by cs code. Due to reload, page is jumped to the top instead desire anchor location.

Can someone help me?

Question by:young_nacs
    LVL 15

    Expert Comment

    Just use the standard page anchors with no javascript...

    <a name="anchor1">

    <a href="#anchor1">
    LVL 15

    Accepted Solution

    Sorry, the link would be like this:

    <a href="#anchor1">Jump to Anchor 1</a>

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    ColdFusion Rereplace 3 51
    Update field in order 21 96
    SP to delete duplicates 15 47
    Reason for High TTFB 1 20
    Uploading files to the web server has become common part of almost any kind of web application. People use different technologies to solve this, but regardless of the technology used, it is always useful to have some kind of progress indicator shown…
    Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
    The viewer will learn how to count occurrences of each item in an array.
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

    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

    22 Experts available now in Live!

    Get 1:1 Help Now