138 users online (0 members and 138 guests)  


  Results 1 to 5 of 5

Related

  1. Replies: 3
  2. Message on the bottom bar    Forum: HTML Forum
    Replies: 2
  3. Help with bottom bar on websites    Forum: HTML Forum
    Replies: 2
  4. Possitionning at the bottom    Forum: CSS Forum
    Replies: 3
  5. anchoring an image?    Forum: CSS Forum
    Replies: 9
  1. #1
    jpbasekramer's Avatar
    New User

    Status
    Offline
    Join Date
    Feb 2004
    Posts
    3

    Anchoring with #bottom

    Quote Originally Posted by QuietDean
    Hmm.

    How about -

    Code:
    <a href="page.htm#bottom">reload page</a>
    ? as long as you have a bottom tag, this should work, I would have thought.
    Hello,
    Could you tell me what a bottom tag is?
    Im trying to get focus on the bottom of the page after a input button on a form is clicked on.

    Thank you

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Topic split into own thread.

    Hi,

    A bottom tag, as it were, is referred to as an anchor. You can make one like this -

    Code:
    <a name="bottom"> </a>
    A link or form targeted to pagename.html#bottom would then go to where the anchor is.

    Hope that helps.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    jpbasekramer's Avatar
    New User

    Status
    Offline
    Join Date
    Feb 2004
    Posts
    3

    Anchoring with #bottom

    Quote Originally Posted by QuietDean
    Topic split into own thread.

    Hi,

    A bottom tag, as it were, is referred to as an anchor. You can make one like this -

    Code:
    <a name="bottom"> </a>
    A link or form targeted to pagename.html#bottom would then go to where the anchor is.

    Hope that helps.
    Hello,

    I can get it to work when I use just HTML:
    Code:
    <a href="op.php#bottom">reload</a>
    <a name="bottom">b</a>
    but Im trying to get it to work when a submit button is clicked on in a form. I cant get this to work:
    Code:
    <input class='buttonstyle' onClick="window.location='op.php#bottom';" type='submit' name='all' value='Entire History'>
    Is there anything else I should have on my page to make this work?

    Thanks alot

  4. #4
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Its working fine. You have set it up in the wrong place.

    Your form is submitting. Therefore, your window.location is pointless and not being used at all.

    Change your form action="" to have the #bottom in it and it will work.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  5. #5
    jpbasekramer's Avatar
    New User

    Status
    Offline
    Join Date
    Feb 2004
    Posts
    3
    Thanks alot, works a treat.

    jay



Tags for this Thread