Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Sep 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Page auto focusing to bottom

    Can anyone tell me why this webpage continues to focus at the bottom of the page when it loads?

    I've downloaded some code snippets and I'm not sure which one is forcing me to the bottom of the page.

    http://www.wackyjackys.com.au/index....lters-retreat2

    Any help would be appreciated

    Cheers

    Lee

  • #2
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,029
    Thanks
    23
    Thanked 588 Times in 587 Posts
    When I removed this line
    Code:
    <script type="text/javascript" src="http://www.wackyjackys.com.au/js/prototype/validation.js"></script>
    It stopped going to the bottom. If you don't need this, don't use it. The guy that made it:
    Code:
    Andrew Tetlaw
    http://tetlaw.id.au/view/javascript/really-easy-field-validation
    Has left the building, so no help from his end.

    If you really need this, start commenting out functions til you find the one that does this.
    Evolution - The non-random survival of random variants.

  • #3
    New to the CF scene
    Join Date
    Sep 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by sunfighter View Post
    When I removed this line
    Code:
    <script type="text/javascript" src="http://www.wackyjackys.com.au/js/prototype/validation.js"></script>
    It stopped going to the bottom. If you don't need this, don't use it. The guy that made it:
    Code:
    Andrew Tetlaw
    http://tetlaw.id.au/view/javascript/really-easy-field-validation
    Has left the building, so no help from his end.

    If you really need this, start commenting out functions til you find the one that does this.
    Thanks Sunfighter,

    Can I ask how you could test refreshing the page and removing the code? Was it with Firebug? Each time I removed code within Firebug and refreshed it the code would reappear.

  • #4
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,029
    Thanks
    23
    Thanked 588 Times in 587 Posts
    Didn't use firebug. I went to your site and used "view page source" in the right click menu. Then copy/pasted it into my editor. I then started to comment out javascript links. Got it with the first group. Then it's just a matter of finding the right one.
    Evolution - The non-random survival of random variants.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •