IE Does not Open Link

Hi Experts,

I have a very basic script as follows:
 <!DOCTYPE html>
<html lang="en">

 <head>
	<meta charset="utf-8">
        <title>RS @ APD</title>
	<link rel="stylesheet" href="https://192.168.1.202/CSS_Reservations/styles/main.css">
        
        
        <link rel="stylesheet" href="https://192.168.1.202/CSS_Reservations/styles/">
            
</head>


    <body >

        <h1>RS @ APD</h1><br>
        <h2>Temporary Dispatch Page</h2>
        
        <!--Content Start-->

    <!--content-->
    <a href="../addedit/"> <input type="button" value="Add/Edit" class="buttons"> </a>
    <br><br>
    
    <a href="../login/?action=logout"> <input type="button" value="Logout" class="buttons"> </a>
    <br><br>
         
<!--Place where appropriate-->
        <!--Info Start-->
        <div id="info">
            <img src="https://192.168.1.202/CSS_Reservations/images/info.gif">
            <p> Please make your selection... </p>
        </div>
    <!--Info Finish-->

 
    
        <!--Content Finish-->

    </body>
 
 </html>

Open in new window


The buttons work in all browsers except the very special IE. Any idea why
APD TorontoSoftware DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

F PCommented:
You can't have a button tag/element inside an a (anchor) tag/element.

Reference:
http://www.w3.org/TR/html-markup/button.button.html#button.button

The interactive element button must not appear as a descendant of the a element.
0
F PCommented:
.. The fact that it works in other browsers are from developers being nice and allowing your mistake to work.
0
F PCommented:
If you want it to work, change the code to this:

<input type="button" value="Add/Edit" class="buttons" onClick="JavaScript:location.href='../addedit/';">
<input type="button" value="Logout" class="buttons" onClick="JavaScript:location.href='../login/?action=logout';">

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

APD TorontoSoftware DeveloperAuthor Commented:
This make sense, but the funny thing is that this also worked on IE 2 weeks ago, but not anymore.
0
F PCommented:
IE and Microsoft are the "we walk our own path" and try to be leaders.. instead of following standards and conventions. You never know with them what will happen.
0
F PCommented:
... lol, I just remembered a saying I often use. Everything works until it doesn't.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.