Best way to detect that HTML5 <canvas> is not supported

Posted by brainjam on Stack Overflow See other posts from Stack Overflow or by brainjam
Published on 2010-04-30T14:59:42Z Indexed on 2010/05/01 0:37 UTC
Read the original article Hit count: 324

The standard way to deal with situations where the browser does not support the HTML5 <canvas> tag is to embed some fallback content, usually a polite version (and sometimes a less polite version) of

<canvas>Your browser sucks</canvas>

But the rest of the page remains the same, which may be inappropriate or misleading. I'd like some way of detecting canvas non-support so that I can present the rest of my page accordingly. What would you recommend?

© Stack Overflow or respective owner

Related posts about html5

Related posts about canvas