开发者

targeting div in some other page

开发者 https://www.devze.com 2023-03-04 12:58 出处:网络
I 开发者_StackOverflow社区have two pages say abc and xyz in abc i have an anchor tag, and when i click on that it should go to some div in page xyz.

I 开发者_StackOverflow社区have two pages say abc and xyz

in abc i have an anchor tag, and when i click on that it should go to some div in page xyz.

i used in the page abc

and in xyz i put ... before that div..what am i missing?


You add a # and the value of the id of the element you are targeting to the end of the URL:

http://example.com#id_value_of_target_element
0

精彩评论

暂无评论...
验证码 换一张
取 消