Results 1 to 3 of 3

Thread: Linking using Command Buttons

  1. #1
    Join Date
    Nov 2007
    Location
    Australia
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Linking using Command Buttons

    I was wondering if anyone here knows how to use command buttons to link to another page? I've tried various things (most of which I can no longer remember, lol), but they won't work. Can anyone help me? Please reply as soon as possible...

    Thankyou.
    Last edited by musicgal3; 11-24-2007 at 01:59 AM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Command buttons is pretty vague. A button though is a specific type of an HTML input element (and so is a submit button). So, for a button to load (link to) another page you have two basic choices -

    scripting (requires javascript enabled):

    HTML Code:
    <input type="button"
    onclick="window.location='http://www.google.com/'" value="Google">
    or a basic HTML form action (requires no javascript):

    HTML Code:
    <form action="http://www.google.com/">
    <div>
    <input type="submit" value="Google">
    </div>
    </form>
    Either of these two approaches can have many variations and/or styling.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Nov 2007
    Location
    Australia
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thankyou sooo much! This really helped & it works! Thanks again.

Bookmarks

Posting Permissions

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