How i can create a link which target to a specific height of another page? For example, a link which targets to the last article (spesific div) of another page?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
this is very simple, you can just add
#elementIdto the link and<html-element id="elementId" />will be selectedif you dont have an element id, this is a workaround:
now you can call
http://www.asdf.com/myPage.whatever?scrollto=myTarget. javascript will find the string “scrollto=myTarget” (not a real url-parameter!) and therefore scroll down.