<!DOCTYPE html>
<html lang="en-US">
<body>
<object id="obj1" data="/resume.pdf" width="400" height="500" type="application/pdf" typemustmatch></object>
<script>
var obj = document.getElementById("obj1");
console.log(obj.typeMustMatch);
</script>
<p><strong>Note:</strong> typemustmatch attribute works only in firefox.</p> </body>
</html>