first_page the funky knowledge base
personal notes from way, _way_ back and maybe today

JavaScript: jsWindow(); Function That Opens a New Browser Window

function jsWindow(vName,vValue,vFeatures,vIsHTML) {

if(vFeatures == '') {
    vFeatures = ""
        + "toolbar=1"
        + ",location=0"
        + ",scrollbars=1"
        + ",resizable=1"
        + ",directories=0"
        + ",status=0"
        + ",width=320"
        + ",height=240"
}

if(vIsHTML) {
    //Format HTML, adding the close method of the window object.
    vValue = "<HTML>\\n"
        + "<CENTER>\\n<BR><BR>\\n"
        + "<HEAD><TITLE>Songhay System</TITLE></HEAD>\\n"
        + vValue
    vValue += "\\n<FORM><INPUT TYPE=button VALUE=\\"Close\\""
           +"OnClick=\\"window.close()\\"></FORM>"
    vValue += "\\n</CENTER>\\n</HTML>"

    //Open window.
    vWindow = window.open('', vName, vFeatures)
    with(vWindow.document) {
        write(vValue)
        close()
    }
}
else {
    //Open window.
    vWindow = window.open(vValue, vName, vFeatures)
}

}

mod date: 2000-12-31T03:25:33.000Z