Наши волонтёры ещё не перевели данную статью на Русский. Присоединяйтесь к нам и помогите сделать эту работу!
Вы можете также прочитать эту статью на English (US).

This feature has been removed from the Web standards. Though some browsers may still support it, it is in the process of being dropped. Avoid using it and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

The Navigator.vendorSub read-only property is the substring of the vendor having to do with the vendor version number. The specification allows browsers to always return the empty string, so don't rely on this property to get a reliable answer.


venSub = window.navigator.vendorSub 



// returns "6.1" where the vendor part of userAgent is 
// Netscape6/6.1


vendorSub is a component of the full user agent string. It refers to the version number that the vendor themselves have given the current browser (as opposed to the version of the product, which may be different). In Netscape 6.1, the productSub is given as "5.0" and the vendorSub is "6.1." See also navigator.productSub, navigator.userAgent, navigator.vendor


Specification Status Comment
HTML Living Standard
The definition of 'NavigatorID: vendorSub' in that specification.
Living Standard Initial definition

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support Yes ? Yes Yes15 Yes
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support Yes Yes ? Yes15 Yes ?

Метки документа и участники

Внесли вклад в эту страницу: mfuji09, sideshowbarker, connorshea, Sebastianz, hexalys, teoli, MHasan, kscarfone, libreGeekingKid, Sheppy, ethertank, ziyunfei, Mgjbot, Dria, JesseW
Обновлялась последний раз: mfuji09,