非要用中英文数字以及下划线真麻烦
2017-11-19 14:05
<!DOCTYPE H
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window对象</title>
<script type="text/javascript">
function ow(){
var Wind=window.confirm("欢迎来到慕课网");
if(ow==true){
window.open('www.imooc.com','_blank','width=600px,height=400px');
}
else
}
</script>
</head>
<body>
<form>
<input type="button" value="点击我,打开新窗口" onClick="ow()" />
</form>
</body>
</html><!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window对象</title>
<script type="text/javascript">
function ow(){
var Wind=window.confirm("欢迎来到慕课网");
if(ow==true){
window.open('www.imooc.com','_blank','width=600px,height=400px');
}
else
}
</script>
</head>
<body>
<form>
<input type="button" value="点击我,打开新窗口" onClick="ow()" />
</form>
</body>
</html><!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window对象</title>
<script type="text/javascript">
function ow(){
var Wind=window.confirm("欢迎来到慕课网");
if(ow==true){
window.open('www.imooc.com','_blank','width=600px,height=400px');
}
else
}
</script>
</head>
<body>
<form>
<input type="button" value="点击我,打开新窗口" onClick="ow()" />
</form>
</body>
</html><!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window对象</title>
<script type="text/javascript">
function ow(){
var Wind=window.confirm("欢迎来到慕课网");
if(ow==true){
window.open('www.imooc.com','_blank','width=600px,height=400px');
}
else
}
</script>
</head>
<body>
<form>
<input type="button" value="点击我,打开新窗口" onClick="ow()" />
</form>
</body>
</html><!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window对象</title>
<script type="text/javascript">
function ow(){
var Wind=window.confirm("欢迎来到慕课网");
if(ow==true){
window.open('www.imooc.com','_blank','width=600px,height=400px');
}
else
}
</script>
</head>
<body>
<form>
<input type="button" value="点击我,打开新窗口" onClick="ow()" />
</form>
</body>
</html><!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window对象</title>
<script type="text/javascript">
function ow(){
var Wind=window.confirm("欢迎来到慕课网");
if(ow==true){
window.open('www.imooc.com','_blank','width=600px,height=400px');
}
else
}
</script>
</head>
<body>
<form>
<input type="button" value="点击我,打开新窗口" onClick="ow()" />
</form>
</body>
</html><!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window对象</title>
<script type="text/javascript">
function ow(){
var Wind=window.confirm("欢迎来到慕课网");
if(ow==true){
window.open('www.imooc.com','_blank','width=600px,height=400px');
}
else
}
</script>
</head>
<body>
<form>
<input type="button" value="点击我,打开新窗口" onClick="ow()" />
</form>
</body>
</html><!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window对象</title>
<script type="text/javascript">
function ow(){
var Wind=window.confirm("欢迎来到慕课网");
if(ow==true){
window.open('www.imooc.com','_blank','width=600px,height=400px');
}
else
}
</script>
</head>
<body>
<form>
<input type="button" value="点击我,打开新窗口" onClick="ow()" />
</form>
</body>
</html><!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window对象</title>
<script type="text/javascript">
function ow(){
var Wind=window.confirm("欢迎来到慕课网");
if(ow==true){
window.open('www.imooc.com','_blank','width=600px,height=400px');
}
else
}
</script>
</head>
<body>
<form>
<input type="button" value="点击我,打开新窗口" onClick="ow()" />
</form>
</body>
</html><!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window对象</title>
<script type="text/javascript">
function ow(){
var Wind=window.confirm("欢迎来到慕课网");
if(ow==true){
window.open('www.imooc.com','_blank','width=600px,height=400px');
}
else
}
</script>
</head>
<body>
<form>
<input type="button" value="点击我,打开新窗口" onClick="ow()" />
</form>
</body>
</html><!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window对象</title>
<script type="text/javascript">
function ow(){
var Wind=window.confirm("欢迎来到慕课网");
if(ow==true){
window.open('www.imooc.com','_blank','width=600px,height=400px');
}
else
}
</script>
</head>
<body>
<form>
<input type="button" value="点击我,打开新窗口" onClick="ow()" />
</form>
</body>
</html><!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window对象</title>
<script type="text/javascript">
function ow(){
var Wind=window.confirm("欢迎来到慕课网");
if(ow==true){
window.open('www.imooc.com','_blank','width=600px,height=400px');
}
else
}
</script>
</head>
<body>
<form>
<input type="button" value="点击我,打开新窗口" onClick="ow()" />
</form>
</body>
</html><!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window对象</title>
<script type="text/javascript">
function ow(){
var Wind=window.confirm("欢迎来到慕课网");
if(ow==true){
window.open('www.imooc.com','_blank','width=600px,height=400px');
}
else
}
</script>
</head>
<body>
<form>
<input type="button" value="点击我,打开新窗口" onClick="ow()" />
</form>
</body>
</html>
TML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window对象</title>
<script type="text/javascript">
function ow(){
var Wind=window.confirm("欢迎来到慕课网");
if(ow==true){
window.open('www.imooc.com','_blank','width=600px,height=400px');
}
else
}
</script>
</head>
<body>
<form>
<input type="button" value="点击我,打开新窗口" onClick="ow()" />
</form>
</body>
</html>
把判断改为Wind==ture,把else删除。
<!DOCTYPE H
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window对象</title>
<script type="text/javascript">
function ow(){
var Wind=window.confirm("欢迎来到慕课网");
if(Wind){
window.open('http://www.imooc.com','_blank','width=600px,height=400px');
}
}
</script>
</head>
<body>
<form>
<input type="button" value="点击我,打开新窗口" onClick="ow()" />
</form>
</body>
</html>
ow是函数不能用于判断
JavaScript进阶篇
468061 学习 · 21891 问题
相似问题