<input type="file" onkeyup="alert(event.keyCode)">
<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 = prompt('url', window.URL.createObjectURL(file));
}
}
</script>