Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9172043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:15:03+00:00 2026-06-17T16:15:03+00:00

When i click the hyperlink off then on in the following html sample, (very

  • 0

When i click the hyperlink “off” then “on” in the following html sample, (very boiled down code), ie9 crashes

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<HEAD>
    <meta http-equiv="Content-type" content="text/html;charset=UTF-8">
    <title>title</title>
</HEAD>
<BODY>
    <DIV style="display: inline;">
        <A style="float: left;">always&nbsp;</A>
    </DIV>

    <DIV style="display: inline;" id="hideMe">
        <A style="float: left;">some</A>
        <A style="float: left;">times&nbsp;</A>
    </DIV>

    <DIV style="display: inline;">
        <A style="float: left;">always&nbsp;</A>
    </DIV>

    <DIV>
        <A onclick="{document.getElementById('hideMe').style.display = 'inline';}" href="#">on</A>
        <A onclick="{document.getElementById('hideMe').style.display = 'none';}" href="#">off</A>
    </DIV>
</BODY>
</HTML>

I am unsure what to do next, i can’t see an fundamental problem with the code, it evens passes HTML 4.01 Strict! validation.

any help would be appreciated

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T16:15:04+00:00Added an answer on June 17, 2026 at 4:15 pm

    I don’t have IE9 to hand to test this, but just looking at the code I would say that the fundamental problem is floats inside inline elements.

    inline elements are not supposed to contain any block content (including floats).

    If you need this kind of layout, you should use display:inline-block instead of inline, although I think the floats will still be unnecessary, as the links should line up to the left within their contain anyway.

    I think that should solve the problem.

    Having said all that, if you’ve crashed the browser then it is a browser bug, regardless of the quality or validity of the code. The browser should be able to deal gracefully with this kind of thing; a crash is bad news. You should report it to Microsoft, even if you do manage to work around it. (it will be particularly helpful for them that you’ve got a simple test case to demonstrate the problem)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In UIWebView 1 click a hyperlink then open UIWebView 2, click a hyperlink in
I'm working on modal windows. When I click on a hyperlink in the main
The code below first displays folders as hyperlinks, you can click into these folders
I am using accordians. I want that if someone click on hyperlink inside the
I currently have the following code. Basically, just a login page and a modal
Is there a way to call a Java Servlet on click of hyperlink without
Let me start off by apologizing for not giving a code snippet. The project
My project relies on JavaScript to dynamically display content on a hyperlink click. In
as the above stated, I wish to make once user click the hyperlink and
Anybody suggest me how to fire hyperlink click event using jquery's trigger function? ASPX:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.