Is there any CSS property to get the url when a link is clicked (without using the javascript/jquery)?
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.
There is the
:target-pseudo-class, which matches actually clicked anchor-targets, given in a URL after a#.For example calling
index.php#paragraph1would matchin your CSS use something like:
To get some highlighting like here on SO, use something like:
To display the URL of an anchor in the moment it’s clicked, use: