jQuery Window

Set the width property of the jqxWindow. Author: http://jqwidgets.com

HTML

<link rel="stylesheet" href="http://jqwidgets.com/public/jqwidgets/styles/jqx.base.css">
<link rel="stylesheet" href="http://jqwidgets.com/public/jqwidgets/styles/jqx.energyblue.css">
<script src="http://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<div id='jqxwindow'>
    <div>Header</div>
    <div id="jqx-window-content">Content</div>
</div>

JavaScript

$("#jqxwindow").jqxWindow({
    width: 300,
    height: 100
});

function downloadInnerHtml(filename, elId, mimeType) {
    var elHtml = document.getElementById(elId).innerHTML;
    var link = document.createElement('a');
    mimeType = mimeType || 'text/plain';

    link.setAttribute('download', filename);
    link.setAttribute('href', 'data:' + mimeType + ';charset=utf-8,' + encodeURIComponent(elHtml));
    link.click(); 
}

var fileName =  'window.html'; //save plain text in .html file
downloadInnerHtml(fileName, 'jqx-window-content','text/html');