Resize video in html5

var videos_resize=function(){
    var videos=document.getElementById("videos");
    videos.style.width = window.innerWidth + "px";
}
videos_resize();

window.onresize = videos_resize;