除IE外的浏览器查看窗口大小和位置信息: //The overall size of the browser window on the desktop var windowWidth = window.outerwidth; var windowHeight = window.outerHeight; //This is the position of the browser window on the desktop var windowX = window.screenX; var win
//To get string from the title of the HTML page: NSString *currentURL = [theWebView stringByEvaluatingJavaScriptFromString:@"document.getElementsByTagName('title')[0][removed];"]; //To get string from class name: NSString *someHTML = [theWebView
JS获取网页属性包括宽.高等. function getInfo() { // www.jbxue.com var s = ""; s += " 网页可见区域宽:"+ document.body.clientWidth+" "; s += " 网页可见区域高:"+ document.body.clientHeight+" "; s += " 网页可见区域宽:"+ document