62,243
社区成员




<input type="text" name="" id="text1"/>
<button onclick="popUp()">弹出</button>
<script type="text/javascript">
function popUp() {
alert('sd'); //点击确定之后继续下面的代码
document.getElementById("text1").focus();
}
</script>
if(!confirm("Are you sure?")){
...xxxx.focus();
return false;
}