Grow your CSS skills. Land your dream job.

How can JavaScript be used to display

  • # February 6, 2010 at 1:52 am

    How can JavaScript be used to display things differently in two different browsers? Hey everyone, I started programming and was wondering how JavaScript can be used to display things differently in two different browsers? Thanks for all help!
    _________________________
    keyword research ~ keyword tool ~ keyword tracking ~ affiliate elite

    # February 6, 2010 at 2:56 am

    I’m guessing the same you do it with stylesheets. Have a javascript activate for the specific browser

    # February 6, 2010 at 6:20 am

    Javascript is not the best thing to use for this, you should use CSS with conditional comments or PHP where you detect the browser version and then direct the user to the correct page. If a user has Javascript disabled a Javascript detect and redirect would not work

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".