IE Does not Open Link

Hi Experts,

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

	<meta charset="utf-8">
        <title>RS @ APD</title>
	<link rel="stylesheet" href="">
        <link rel="stylesheet" href="">

    <body >

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

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

        <!--Content Finish-->


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

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.


The interactive element button must not appear as a descendant of the a element.
F PCommented:
.. The fact that it works in other browsers are from developers being nice and allowing your mistake to work.
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


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.
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.
F PCommented:
... lol, I just remembered a saying I often use. Everything works until it doesn't.
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

From novice to tech pro — start learning today.