Home > front end >  Code problem query
Code problem query

Time:03-16

Trouble can help take a look at this code is a wrong place, test has been no response, thank you



The function check () {
If (document. GetElementById (" name "). The value="" https://bbs.csdn.net/topics/={
Alert (" please input full!" );
return false;
} else {
Return true
}
}
</script>

<body>

CodePudding user response:

 & lt; html> 

The function check () {
If (document. GetElementById (" name "). The value="" https://bbs.csdn.net/topics/={
Alert (" please input full!" );
return false;
} else {
Return true
}
}
</script>

<body>


test on my side is good, if your web shield JS

CodePudding user response:

I found in front of me is more than a window. The onl oad=function () {... }, why bother consulting added is not


Window. The onl oad=function () {
The function check () {
If (document. GetElementById (" name "). The value="" https://bbs.csdn.net/topics/={
Alert (" please input full!" );
return false;
} else {
Return true
}
}
}
</script>
  • Related