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
    Regular Coder
    Join Date
    Jun 2002
    Location
    England =)
    Posts
    518
    Thanks
    25
    Thanked 0 Times in 0 Posts

    :: #top buttons in javascript ::

    how can i make a button that takes the user to the top of the page without the url#top being displayed in addy bar? i just dont like the way it looks

    thanks peeps
    "They hired me for my motivational skills. Everyone at work says they have to work much harder when I`m around" Homer J Simpson

  • #2
    Regular Coder
    Join Date
    May 2002
    Location
    Helsinki, Finland
    Posts
    231
    Thanks
    0
    Thanked 1 Time in 1 Post

    Thumbs up

    with JS:
    <input type="button" value="Back to top" onclick="scrollTo(0,0);" />

    Nice enough?
    Zvona
    First Aid for
    Web Design

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    England =)
    Posts
    518
    Thanks
    25
    Thanked 0 Times in 0 Posts
    thanks! works fine!
    "They hired me for my motivational skills. Everyone at work says they have to work much harder when I`m around" Homer J Simpson

  • #4
    New to the CF scene
    Join Date
    Jan 2011
    Location
    Silver Spring, MD
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thats cool ...

    _______________

    Whole in one guide: Power4Home Review and The Complete Bead Guide.


  •  

    Posting Permissions

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