MDN may have intermittent access issues April 18 13:00 - April 19 01:00 UTC. See whistlepig.mozilla.org for all notifications.

mozilla
Wyniki wyszukiwania

    NPN_UserAgent

    Ten artykuł wymaga przeglądu technicznego.

    Nasi wolontariusze nie przetłumaczyli jeszcze tego artykułu na język Polski. Dołącz do nas i pomóż go przetłumaczyć!

    « Gecko Plugin API Reference « Browser Side Plug-in API

    Summary

    Returns the browser's user agent field. This can be used to handle variations in different browsers (or versions thereof) when implementing your plug-in.

    Syntax

    #include <npapi.h>
     
    const char* NPN_UserAgent(NPP instance);
    

    Parameters

    The function has the following parameter:

    instance
    Pointer to the current plug-in instance.

    Returns

    A pointer to a buffer that contains the user agent field of the browser.

    Description

    The user agent is the part of the HTTP header that identifies the browser during transfers. You can use this information to verify that the expected browser is in use, or you can use it in combination with NPN_Version() to supply different code for different versions of the same browser.

    See also

    Autorzy i etykiety dokumentu

    Contributors to this page: Pmash, Sheppy, kscarfone
    Ostatnia aktualizacja: kscarfone,