Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jul 2013
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    buttons work in chrome but bot Firefox or IE

    here is the page:

    https://www.world-affairs.org/get-in.../membership-2/

    Anyone know why these buttons won't work in IE or firefox? Thanks!

  • #2
    Senior Coder
    Join Date
    Sep 2010
    Posts
    1,899
    Thanks
    15
    Thanked 226 Times in 226 Posts
    Quote Originally Posted by jfoster View Post
    here is the page:

    https://www.world-affairs.org/get-in.../membership-2/

    Anyone know why these buttons won't work in IE or firefox? Thanks!
    What are they supposed to do? How do we know why they don't work if we don't know what they're supposed to do. I'm on Firefox and they don't do anything, but what should they do?
    Welcome to http://www.myphotowizard.net

    where you can edit images, make a photo calendar, add text to images, and do much more.


    When you know what you're doing it's called Engineering, when you don't know, it's called Research and Development. And you can always charge more for Research and Development.

  • #3
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    3,757
    Thanks
    23
    Thanked 546 Times in 545 Posts
    Here is one button:
    Code:
    <button type="submit" style="height: 30px; width: 120px">
    <h4>
    	<a href="https://www.world-affairs.org/get-involved/become-a-member/membership-2/individual-membership/" target="_blank">
    		Individual
    	</a>
    </h4>
    </button>
    Not sure it's kosher to put an anchor inside of a button. Especially when a button can act as an anchor. The problem I found was the target="_blank", but believe I got it.

    Replace the above code with this
    Code:
    <button style="height: 30px; width: 120px;" onclick='window.open("https://www.world-affairs.org/get-involved/become-a-member/membership-2/individual-membership/");return false;'><h4>Individual</h4></button>
    You have to do this for all buttons that you have an anchor inside of.
    Evolution - The non-random survival of random variants.

  • Users who have thanked sunfighter for this post:

    jfoster (07-27-2013)

  • #4
    Regular Coder stevenmw's Avatar
    Join Date
    Jun 2007
    Location
    OK
    Posts
    497
    Thanks
    27
    Thanked 31 Times in 31 Posts
    Sunfighter is right. That is not a good use of an an anchor. Read over this
    http://css-tricks.com/when-and-when-...an-anchor-tag/
    Thanks!


  •  

    Posting Permissions

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