dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: jump to the top of web page

  1. #1
    Join Date
    Jul 2006
    Posts
    152

    jump to the top of web page

    I have this statment at the bottom of a page, that onclick, opens a IFrame at the top of the same page:

    <a href='contacts.php?lang=$lang&id=$id&tipoc=info' target='I2'><span style='background-color=#CC3300; font face=verdana size=15px; color=#ffffff'>info</span></a>

    Because the Iframe opens on top needs to scroll the page up in order to view the Iframe. Then I would like to add a extra code to the same statment, that makes the page to jump automatically to the top.

  2. #2
    Join Date
    Aug 2006
    Posts
    167
    firstly insert this at the top of the page <a name="flashplace">
    and replace your link with this:
    HTML Code:
    <a href="#flashplace" onclick="window.I2.location='contacts.php?lang=$lang&id=$id&tipoc=info';">info</a>

  3. #3
    Join Date
    Jul 2006
    Posts
    152

    resolved jump to the top of web page

    Quote Originally Posted by pacerier
    firstly insert this at the top of the page <a name="flashplace">
    and replace your link with this:
    HTML Code:
    <a href="#flashplace" onclick="window.I2.location='contacts.php?lang=$lang&id=$id&tipoc=info';">info</a>

    Hi

    Thanks for the tip.

    I manage to do it this simple way:

    onclick="window.location='#';"

    Even without "firstly insert this at the top of the page <a name="flashplace">"

    Hope that gives you another solution.

    Best regards
    Last edited by JoseSilva; 08-10-2006 at 08:21 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles