Netscape DevEdge

Skip to: [content] [navigation]

TOC PREV NEXT

plug-ins!


NPN_UserAgent


Returns the browser's user agent field.

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 Netscape browsers.

See Also

NPN_Status, NPN_Version
 


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT
A+R