Jump to content

mykul

New Members
  • Posts

    2
  • Joined

  • Last visited

mykul's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hey!! Got an issue: I need to link from one page to a tab on another page. No prob, I can do that (the tabs have a #) but my problem is I need the whole page to stay scrolled to the top. Currently when I link to a tab, the page will start at the top of that tabs content. I've used this: <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ window.scrollTo(0,0); }); </script> It works great in Firefox but in nothing else. An example of a link from the original page: <div class="shorty_purchase"><a href="products.html#tab-4-div " class="button small green"> <span>Continued...</span></a></div>
  2. Hey!!!! This is all awesome, had the same problem. I needed to link from a page to a tab but still have the browser open to the top of the page and not to the top of the selected tab. Only problem is it only seems to work in Firefox?
×
×
  • Create New...