Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 1126 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     Javascript :

Load Page at a Certain Position?

Thread title: Load Page at a Certain Position?
     
    Thread tools Search this thread Display Modes  
Prev Previous Post   Next Post Next
04-23-2010, 04:37 PM
#1
mattf87 is offline mattf87
Status: I'm new around here
Join date: Mar 2008
Location:
Expertise:
Software:
 
Posts: 8
iTrader: 0 / 0%
 

mattf87 is on a distinguished road

  Old  Load Page at a Certain Position?

Hi everyone,

I was wondering if there was a way to use javascript in order to have the browser load the page at a certain position.

Specifically, I have a div that I want to be perfectly centered in the middle of the user's browser on load. It would have to be centered both on the y axis and x axis (for specific reasons my page is extra tall and extra extra wide).

To be clear, I don't want to change this div's actual position on the page. I want to make it so that the browser window's scrollbars are set so that this div is in the center of the window once the page loads. (Kind of like linking to an anchor tag except I want it to load completely centered instead of top-left.)

If anyone knows of a way to do this or can provide any other input it would be greatly appreciated.

Thanks!

Reply With Quote
     


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed