jquery - How do I have a user pop down to a specific spot on a page when a certain link is clicked -


hey guys trying figure out how have user, redirect page , based on link clicked; have put them in spot of page contains information.

i planning on coding in jquery. please let me know :)

thanks guys , hope having tremdous thursday!!!

edit:

<div class="online_training">      <div class="training_image">        <a href="../services.php">...</a>      </div><!-- .training_image -->      <div class="top-textarea">        <h2><a href="../services.php"></a>....</h2>        <p>                        .....        </p>      </div><!-- .top-textarea --> </div><!-- .online_training -->        have mutiple of these , part notice want have  redirect , go part of page .training_image <a> , <h2> 1 is. 

the easiest way use anchor tags.

on initial page:

<a href="/otherpage#spot1">go spot1</a> 

on otherpage:

<a href="#" name="spot1"></a> 

when otherpage loaded, scroll anchor named spot1.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -