WebPageTest Homepage WebPageTest, by Catchpoint Documentation

Meta Viewport Value

Get the meta viewport element and return its contents.

[meta-viewport]
var viewport = undefined;
var metaTags = document.getElementsByTagName("meta");
for (var i = 0; i < metaTags.length; i++) {
if ( "viewport" == metaTags[i].getAttribute("name") ) {
viewport = metaTags[i].getAttribute("content");
break;
}
}
return viewport.replace(/[\x00-\x1F\x80-\xFF]/g, "");