Question : on window resize and on page load
Answered by : tame-teira-mauyq09ubz8r
// Bind to the resize event of the window object
$(window).on("resize", function () { // Set .right's width to the window width minus 480 pixels $(".content .right").width( $(this).width() - 480 );
// Invoke the resize event immediately
}).resize();
Source : https://stackoverflow.com/questions/1974788/combine-onload-and-onresize-jquery | Last Update : Tue, 22 Sep 20