<link rel="stylesheet" href='media700.css' media="screen and (max-width:700px)">
JS
var a = window.outerWidth;
console.log(a); // 711
According the javascript calculation at the moment of switching stylesheet media700
is used on 711px and not 700px window width.