Results 1 to 7 of 7

Thread: easy ? about buttons!

  1. #1

    Thread Starter
    Addicted Member Xenonic_Rob's Avatar
    Join Date
    Jun 2000
    Location
    England, UK
    Posts
    213
    OK, hang on, do you mean for you to click a button, and Internet Explorer suddenly pops up?

    Rob Wright
    E-mail: [email protected]
    Website: http://www.xenonic.com
    The First Member of Honeybee's Club
    Favourite words: Zugzwang and Empiric

  2. #2
    Hyperactive Member
    Join Date
    Nov 1999
    Location
    Columbia, SC USA
    Posts
    374
    no, I just wanted a button on a web page that the user can use to return to the main page. I could always use a link, but I use buttons for a ton of other stuff and just wanted to have a consistent feel

  3. #3
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    add this attribute to you button tag:

    onclick="return go()"

    and now this javascript

    function go()
    {
    location.href "http://blah/link.html"
    }

    Oh and..

    Roll Tide
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  4. #4
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    add this attribute to you button tag:

    onclick="return go()"

    and now this javascript

    function go()
    {
    location.href "http://blah/link.html";
    return true;
    }

    Oh and..

    Roll Tide
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  5. #5
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    add this attribute to you button tag:

    onclick="return go()"

    and now this javascript

    function go()
    {
    location.href "http://blah/link.html";
    return true;
    }

    Oh and..

    Roll Tide
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  6. #6
    Hyperactive Member PJB's Avatar
    Join Date
    Aug 2000
    Location
    dunno at the moment
    Posts
    302
    this also works:
    Code:
    <FORM METHOD="LINK" ACTION="mainpage.html">
    <INPUT TYPE="submit" VALUE="click">
    </FORM>
    VB6.0 SP4
    Windows 2000
    I'm thinking of a number between

  7. #7
    Hyperactive Member
    Join Date
    Nov 1999
    Location
    Columbia, SC USA
    Posts
    374
    thanks guys, I will try these

    and Cander -

    ROOOOOOOOOOOOOOOOOOLLLLLLL TIIIIIIIIIIIIIIIIIIIIIIIIIIIIIDE!

Posting Permissions

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



Click Here to Expand Forum to Full Width