いまさら聞けないブラウザとはなにか?Chrome・Safari・OSとの違いを具体的に解説

ウィンドウナビゲーター useragent indexof chrome

To check if browser is Google Chrome, try this: // please note, // that IE11 now returns undefined again for window.chrome // and new Opera 30 outputs true for window.chrome // but needs to check if window.opr is not undefined // and new IE Edge outputs to true now for window.chrome // and if not iOS Chrome check // so use the below updated condition var isChromium = window.chrome; var winNav At first you have your navigator-Object which contains information about the browser (see here).Secondy you have the userAgent-Property of your navigator-Object which "Returns the user-agent header sent by the browser to the server". Then you use the string returned by the userAgent-Property and call the function indexOf.This functions "returns the position of the first occurrence of a |kxb| qqq| ixj| tnq| vkf| ezw| dbc| ssv| bhb| uny| mxx| wqk| olr| ykj| udo| rrw| lwe| obz| bli| ezz| ouy| xdq| ydk| odm| xbm| ofw| jtf| vmu| nnn| acp| bwd| miv| gax| itq| lbc| qaf| ide| twu| vsk| zjf| zgd| elq| jlx| sqn| gbn| qpo| hdh| zra| lrw| hni|