What is the major difference between $(window).width() vs $(document).width() in jQuery? Whether window denotes the browser and document represents
$(window).width()
$(document).width()
Yes - width of window is width of browser window, and width of document is width of webpage.