javascript - HTML/JS: Use anchor as default -



javascript - HTML/JS: Use anchor as default -

in www, can utilize someplace#position jump #position anchor withing someplace html page.

i want jump #position anchor, if no anchor specified. reason don't have command on sites link someplace, hence cannot add together #position urls everywhere.

say anchor:

<a class="someplace" href="#someplace">someplace</a>

create click event on page load:

$(document).ready(function(){ $('a.someplace').click(); });

javascript html

Comments

Popular posts from this blog

php - How to pass multiple values from url -

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

database - php search bar when I press submit with nothing in the search bar it shows all the data -