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 2 of 2
  1. #1
    New Coder
    Join Date
    Jan 2006
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy autoscroll page reloaded, help!

    Hi everyone!

    What I want is when I submit my page the scroll position shows a specific area. I tried this but it didn't work(FF,OP6)

    PHP Code:
    <?php 
    if($_POST["submit"]){
    print 
    "<script type='' language='JavaScript'>
            self.scrollTo(0, 100);
            </script>"
    ;
    ?>
    <html>
    <head>
    <title>Untitled</title>
    </head>

    <body>

    <form action="" method="POST" id="myForm">
    <input type="submit" name="" value="Top" id="myButton">
    </form>
    <!--a lot of html code-->
    </body>
    </html>
    thanks in advance
    Last edited by erickkz; 07-07-2006 at 11:59 PM.

  • #2
    Regular Coder
    Join Date
    Aug 2005
    Location
    Toronto, ON, Canada
    Posts
    231
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Anchor Tag(s) maybe?
    rm -f /


  •  

    Posting Permissions

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