I need the width of the Chrome browser window and my current code is:
$("input#myHiddenValue").val($(window).width());
I call this from a page which has a scrollbar, but I need it to be the full width of the Chrome browser without a scroll bar.
Can anyone help?
Check out:
window.screen.availWidth
I found this in a doc: Returns the amount of horizontal space in pixels available to the window.
And it is larger than my ? this.width`.
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