Okay
  Public Ticket #1880385
Prevent automatic browser scroll
Closed

Comments

  • Vicki started the conversation

    Hello. Is there a fix that I can implement so that when user refreshes the website they are taken to the TOP of a page, not to the point where they left off? I found this snippet below on another forum but not sure where to put it.


    window.onbeforeunload = function () {  window.scrollTo(0, 0);
    }


  •  8,996
    Tahir replied

    Hey Again,

    You can add it to the Google Analytics section and wrap it inside a script tag . 

    Best 


    ThemeNectar Support Team