In JavaScript, I tell the browser to do something if the window is larger than 500 pixels. I do it like this:
if (windowsize > 500) { // do this }
This works great, but I would like to apply the same method, but with a range of numbers. Therefore, I would like my browser to do something if the window size is between 500 and 600 pixels. I know this will not work, but here is how I imagined it:
if (windowsize > 500-600) { // do this }
Is this even possible in JavaScript?
javascript
Dyck Feb 05 '13 at 22:56 2013-02-05 22:56
source share