How to make page open elsewhere

How to make page open elsewhere
0.0 0

#1

Im not sure how to put it, but ill try: is there a way to make a page open not at the top? For example how to make this one https://codepen.io/freeCodeCamp/full/YqLyXB/ open at portfolio or contacts, not at personal info?


#2

You could do this with a simple script:

document.getElementById('portfolio').scrollIntoView();

#3

thanks a lot man, exactly what i needed


#4

Good. Also, is there a reason you are doing this when you open the page? I can’t think of any good reason this would make sense. Seems counterintuitive.