Like me, you might have found it a challenge at first to load a local .xml file into Chrome. Well this video might help you solve that problem. If it does help please leave a comment below.
Showing posts with label Firefox. Show all posts
Showing posts with label Firefox. Show all posts
Wednesday, May 22, 2013
Tuesday, May 21, 2013
Check for the various File API support in Chrome and Firefox
At some point you might want to check to see if your browser supports HTML5 file API's. The code below will show you how. The video below will show you how to run the code in the console window for Chrome and Firefox.
<!doctype html>
<html lang="en">
<head>
<script>
function checkFileApi()
{
// Check for the various File API support.
if (window.File && window.FileReader && window.FileList && window.Blob) {
console.log('Great success! All the File APIs are supported.');
} else {
console.log('The File APIs are not fully supported in this browser.');
}
}
</script>
</head>
<body>
</body>
</html>
<!doctype html>
<html lang="en">
<head>
<script>
function checkFileApi()
{
// Check for the various File API support.
if (window.File && window.FileReader && window.FileList && window.Blob) {
console.log('Great success! All the File APIs are supported.');
} else {
console.log('The File APIs are not fully supported in this browser.');
}
}
</script>
</head>
<body>
</body>
</html>
Subscribe to:
Posts (Atom)