I am new in javascript and I want to perform some action when the div with is changed
in jquery, I use this code
var width = $(window).width();
$(window).resize(function(){
if($(this).width() != width){
width = $(this).width();
console.log(width);
}
});
but I want to do it using javascript help me please...