Automatically move visitors to target div on website load

Ashgriel

Junior Member
Joined
Jan 21, 2013
Messages
177
Reaction score
38
Hello, I didnt know how to call so I used this title, but what I want to achieve is when visitors will come to my website then browser will direct him to for example mywebsite.com/#video.
I hope that I explained this well because my english is not perfect, but if you know solution for this I will love you :)
 
So you want to change the document.location.hash? Just do it =)

<script type="text/javascript">document.location.hash = 'video';</script>

Or you want to scroll it to the anchor named "video" too?
 
Back
Top