In Internet Explorer JavaScript does not show what is expected.

Discussion in 'Javascript' started by inforonment, Jan 20, 2009.

  1. inforonment

    inforonment Guest


    On my web-site I use javascript to hide-show text fields. All text-
    fields are hidden by default. User can display text-field by clicking
    ">>". And then user can hide the text-filed by clicking "<<".

    In Firefox everything works as described. However, in the IE instead
    of "<<" I see only "<". Can anybody help me to fix the bug.

    The site is here:

    Thank you in advance.
    inforonment, Jan 20, 2009
    1. Advertisements

  2. inforonment

    RobG Guest

    Instead of toggling between 'inline' and 'none', go between '' (empty
    string) and 'none'. Using '' allows the element to return to its
    default display value, whatever it is.
    RobG, Jan 20, 2009
    1. Advertisements

  3. I do hope that with "by default" you mean "per the onload event handler of
    the body element". Otherwise nobody can use your document without

    Thomas 'PointedEars' Lahn, Jan 20, 2009
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.