When the user clicks the first paragraph class "targetgo" I want to scroll to the "size1" class . Second paragraph with "size2" and so on . Here is the code. Is there any way to shorten the code cause I am going to write more than 25 things like this. When the user clicks the first paragraph class