热卖商品
新闻详情
javascript script怎么用_百度知道
来自 : 百度知道
发布时间:2021-03-24
一个小例子
html
head
meta http-equiv= Content-Type content= text/html; charset=utf-8 /
title /title
/head
body
script language= JavaScript
function submits()
{
var o=document.getElementById( name
if(o.value== ){
alert( 名字不能为空!!
o.focus();//让名字字段获得焦点
return false;
}
alert( 提交成功!!
}
/script
名字:
input type= text id= name /
input type= submit value= 提交 quot;submits() /
/body
/html
[专业]答案:一个小例子 <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> </head> <...javascript script怎么用
html
head
meta http-equiv= Content-Type content= text/html; charset=utf-8 /
title /title
/head
body
script language= JavaScript
function submits()
{
var o=document.getElementById( name
if(o.value== ){
alert( 名字不能为空!!
o.focus();//让名字字段获得焦点
return false;
}
alert( 提交成功!!
}
/script
名字:
input type= text id= name /
input type= submit value= 提交 quot;submits() /
/body
/html
[专业]答案:一个小例子 <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> </head> <...javascript script怎么用
本文链接: http://scriptz.immuno-online.com/view-706994.html
发布于 : 2021-03-24
阅读(0)
最新动态
2021-03-24
2021-03-24
2021-03-24
2021-03-24
2021-03-24
2021-03-24
2021-03-24
2021-03-24
2021-03-24
2021-03-24
2021-03-24
2021-03-24