<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script>
//screen对象
function f1(){
console.log(screen.width);
console.log(screen.height);
console.log(screen.availWidth);
console.log(screen.availHeight);
}
//history前进
function f2(){
history.forward();
}
//navigator相关
function f3(){
console.log(navigator.userAgent);
}
</script>
</head>
<body>
<input type="button" value="屏幕" οnclick="f1();">
<input type="button" value="前进" οnclick="f2();">
<input type="button" value="信息" οnclick="f3();">
</body>
</html>