localendar Forums Homepage


Print at May 7, 2026, 10:20:52 PM

Posted by OPwebmaster at Feb 19, 2015, 4:58:50 AM
Re: Auto return to top of Localendar
Marc:
 
With the fully interactive calendar, including some javascript in your title or footer might make it possible to tell the browser to scroll back to the top. I am thinking something like this:

<script>window.scrollTo(0,0);</script>


Perfect! (0,0) takes one to the top left corner of the page. So I modified it so the calendar is more centered. This is the code I used in the Calendar Title:
'Event Activities - by Venue <script>window.scrollTo(50,0);</script>'

And you can see the results here:
http://www.sitetest.ottawapark.org/

I'm all set on this one. Thanks again.


Harry

Help! | Cobranding | Legal | Privacy Policy | About localendar.com | Contact Us