<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>例子</title>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript">
/* $(document).ready(function(){
alert("kyi");
}); */
alert("定时器");
}
window.οnlοad=function(){
alert("kyi");
alert(confirm("qd"));
window.open("out.jsp","win1","width=300,hight=500");
$("#d").click(function(){
alert("点击");
});
};
</script>
</head>
<body>
<div>
ceshi1
<input type="button" value="定时器开始" id="d">
</div>
</body>
</html>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>例子</title>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript">
/* $(document).ready(function(){
alert("kyi");
}); */
//被执行的方法
alert("定时器");
}
window.οnlοad=function(){
alert("kyi");
alert(confirm("qd"));
window.open("out.jsp","win1","width=300,hight=500");
$("#d").click(function(){
alert("点击");
var jij="limian"
//这句话执行
});
};
</script>
</head>
<body>
<div>
ceshi1
<input type="button" value="定时器开始" id="d">
</div>
</body>
</html>