Force Browser to Fit Screen Resolution

by helpinspireme

JavaScript

function openwin(url) {
    var popWin = "";
    var screenWidth = screen.width;
    var screenHeight = screen.height;
    
    if (popWin != "") {popWin.close()}
    windowProperties = "toolbar=no,menubar=no,scrollbars=no,statusbar=no,height="+screenHeight+",width="+screenWidth;
    popWin = window.open(url,'newWin',windowProperties);
}
openwin("http://google.com");