Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to detect browsers in wordpress

    • 0
    • 1
    • 1
    • 1
    • 0
    • 0
    • 0
    • 0
    • 127
    Comment on it

    Welcome to FindNerd
    In some situation we have to detect the browser and perform the different operations on different ones. If we talk about the WordPress then there are many global variables available to detect the browser on which you are processing the website. We are going to list the global variables.

    A) $is_iphone : Its name indicating that it is for safri in iphone.

    B) $is_safari : It is useful to detect the safari browser.

    C) $is_NS4 : Helpful to deect the netscape4.

    D) $is_chrome : for google chrome detection.

    E) $is_winIE : for windows internet explorer.

    F) $is_macIE : for mac internet explorer.

    G) $is_opera : for opera.

    F) $is_gecko : for firefox.

    H) $is_IE : for internet explorer.

    These variables include Boolean value, true or false. These by-default value is false. It will be become true when page loads in selected one. It is most easiest way to manage the different operations on different browsers.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: