SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Apr 2002
    Posts
    43
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help with buttons

    <INPUT id="Button2" onclick="window.location='http://www.oobuffalo.com;" type="button" value="I Decline" name="Button2">

    Here is the link thast I am trying to work on right now. My main questions are these.

    1. This button is on a frameset and I was wondering how I could make this button (under main), become the only( or top) frame.

    2. Also can this button be made to work with a base tag?

  2. #2
    What? Maelstrom's Avatar
    Join Date
    Oct 2001
    Location
    Whistler BC originally from Guelph Ontario
    Posts
    2,175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    YEs you can...

    <INPUT id="Button2" onclick="top.location.href='http://www.oobuffalo.com;" type="button" value="I Decline" name="Button2">

    As for the second question I am unsure what you mean. I think the only way you could acheive that is to use a graphic as a button with <a> tag surrounding the graphic. The <a> tag would default to the base tag.

    However if you are doing your button like above you don't need to worry about base tag. Top.location taks care of that.
    Maelstrom Personal - Apparition Visions
    Development - PhP || Mysql || Zend || Devshed
    Unix - FreeBSD || FreeBsdForums || Man Pages
    They made me a sitepoint Mentor - Feel free to PM me or Email me and I will see if I can help.

  3. #3
    SitePoint Enthusiast
    Join Date
    Apr 2002
    Posts
    75
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You'll also want to close the string on that url

    <INPUT id="Button2" onclick="window.location='http://www.oobuffalo.com' ;" type="button" value="I Decline" name="Button2">

  4. #4
    What? Maelstrom's Avatar
    Join Date
    Oct 2001
    Location
    Whistler BC originally from Guelph Ontario
    Posts
    2,175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by shoop
    You'll also want to close the string on that url

    <INPUT id="Button2" onclick="window.location='http://www.oobuffalo.com' ;" type="button" value="I Decline" name="Button2">
    Yes you will...jeez can't believe I missed that
    Maelstrom Personal - Apparition Visions
    Development - PhP || Mysql || Zend || Devshed
    Unix - FreeBSD || FreeBsdForums || Man Pages
    They made me a sitepoint Mentor - Feel free to PM me or Email me and I will see if I can help.


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
  •