Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap

Q42 How do I detect the version of JavaScript the users browser supports?

You are here: irt.org | FAQ | JavaScript | General | Q42 [ previous next ]

Try the following:

<script language="JavaScript"><!--
var version = 1;

<script language="JavaScript1.1"><!--
var version = 1.1;

<script language="JavaScript1.2"><!--
var version = 1.2;

<script language="JavaScript"><!--
document.write('Your browser supports JavaScript ' + version);

©2018 Martin Webb