<input type="file" onchange = "location.href = window.webkitURL.createObjectURL(event.target.files[0])">
<input type="file">
<script>
//хром и FF
document.body.children[0].onchange = function (e) {
window.URL = window.URL || webkitURL;
var file = e.target.files[0];
if (file.type.indexOf('html') != - 1) {
window.location.href = window.URL.createObjectURL(file);
}
}
</script>
<input type="file">
<script>
//хром, FF, IE
document.body.children[0].onchange = function (e) {
if (navigator.userAgent.indexOf('MSIE') != -1) {
var url = this.value;
if (url.indexOf('html') != -1 || url.indexOf('htm') != -1) {
window.location.href = url;
}
} else {
window.URL = window.URL || webkitURL;
var file = e.target.files[0];
if (file.type.indexOf('html') != - 1) {
window.location.href = window.URL.createObjectURL(file);
}
}
}
</script>