I have several pages and I notice one strange moment, this code:
var w = $(window).width();
alert(w);
From whence this result, I dont understood.
$(window).width() must be always (from all pages) return the same result, mustn't it?
The scrollbar is not included. From your results, 1440 - 1423 = 17px, which is the same width as my scrollbar (e.g. here on Stack Overflow).
It returns 1423 when you have the scrollbar visible.
The width returned when the scrollbar is visible might change on different browsers and operating systems.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With