W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2009

(unknown charset) Re: Web Storage how to check for support?

From: (unknown charset) ~:'' ありがとうございました <j.chetwynd@btinternet.com>
Date: Mon, 27 Jul 2009 17:15:14 +0100
Cc: (unknown charset) public-webapps@w3.org, Doug Schepers <schepers@w3.org>, Charles McCathieNevile <chaals@opera.com>
Message-Id: <9D947530-DDEC-4126-A3D5-C2B777DE9F07@btinternet.com>
To: (unknown charset) Joseph Pecoraro <joepeck02@gmail.com>
Joseph,

thanks for that,

had tried document but not window

regards

~:"

On 27 Jul 2009, at 16:41, Joseph Pecoraro wrote:

>> http://dev.w3.org/html5/webstorage/#the-storage-interface
>> Web Storage how to check for support?
>>
>> How can one in a script check for UA support?
>
> How about either of the following, they both worked as expected for  
> me.
>
>  // Check for the Storage interface
>  if (window.Storage) { ... }
>
>  // Check for an instance of the interface
>  if (window.localStorage) { ... }
>
> - Joe
Received on Monday, 27 July 2009 16:15:52 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:33 GMT