I\'m using last Twitter\'s Bootstrap. I would like to execute a certain JS function (showing tooltip once) when my window\'s width is lower than 980px (as you know, on this
outerWidth is a method so you're missing ():
outerWidth
()
if (window.outerWidth() == 980)
In any case if you're using jQuery:
$(window).resize(function() { if ($(this).width() < 981) { //do something } });