Skip to main content

Forums

This topic contains 2 replies, has 0 voices, and was last updated by  zottona 9 years, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #27890

    zottona
    Member

    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

    #70546

    noahgelman
    Participant

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

    #70548

    TT_Mark
    Member

    This reply has been reported for inappropriate content.

    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.

icon-link icon-logo-star icon-search icon-star