Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Kristina Petravičiūtė
11,270 PointsReturn to same position when clicking browser back
Maybe someone knows how to solve this? :)
Problem is that when I click browser back button from another page to return to the home page it doesn't return to the same position I left from, it always returns to the first position.
1 Answer
Justin Black
24,793 PointsThis actually should happen by default. My browser ( Chromium - light version of chrome for linux ) does this. Chrome has had a problem with this in the past, perhaps it is an issue again if you're using chrome. Firefox and IE should both do this, unless you're using some very old outdated software.
To manually achieve this, you could do so with javascript. Though that's probably better suited once you're further along in your knowledge as it's not super basic, but isn't quite crazy advanced either.
Kristina Petravičiūtė
11,270 PointsKristina Petravičiūtė
11,270 PointsAnd maybe you can show me some example or post a link where I can read more about how to do this? :)