×

Welcome to TagMyCode

Please login or create account to add a snippet.
1
0
 
0
Language: Javascript
Posted by: Stefano Paggi
Added: Apr 14, 2014 10:16 AM
Modified: Apr 14, 2014 10:17 AM
Views: 14
Snippet checks if browser does support SVG. If no, site will be redirected
  1. if (!document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1"))
  2. {
  3.                 window.location.href = "some_site.html";
  4. }