June 18, 2020, 02:12 PM
Les J[SOLVED] Resizing of window
I'm using the following code at the top of my JS code to do something if they resize the window and it's not working. Can I do this with a HTML page?
$(document).ready(function(){
$(window).resize(function(){
// Do something //
});
});
This message has been edited. Last edited by: FP Mod Chuck, June 19, 2020, 06:31 AM
FransDo you need something like this
https://www.w3schools.com/tags/ev_onresize.asp ?
June 19, 2020, 11:02 AM
Les JThat's exactly what I want to do.
June 19, 2020, 11:45 AM
Les J[ Solved ] I just created a separate js file and linked that in the HTML Composer.