Read the following chunk of code and answer at the end inprecise manner; for you
ID: 3616382 • Letter: R
Question
Read the following chunk of code and answer at the end inprecise manner; for your verification you may add some necessaryTags so that code can be executed on your side. We require only stated justificationin the given format at end.
…………………………………………..
…………………………………………..
…………………………………………….
<SCRIPT>
function AnonymousCheck() {
if((document.Myform.a.value == 'CS101'||document.Myform.a.value== 'cs101')&&
(document.Myform.pass.value == '101'||document.Myform.pass.value=='vu'))
{
window.alert(" You are allowed to take paper." ) ;
document.form1.a.onBlur();
}
else
{ window.alert(" You are notallowed to take paper." ) ;
document.form1.a.OnBlur();
}
}
function AnonymousCheck1() {
if(document.Myform.a.value == ''||document.Myform.a.value !='cs101'||document.Myform.a.value != 'CS101'
||document.Myform.pass.value =='')
{
window.alert("Please check entered course is irrelevant orPassword field is empty" ) ;
document.form1.a.onBlur();
}}
</SCRIPT>
……………………………
…………………………..
<FORM name="Myform" method="post" action="">
<TABLE border="1">
<TR> <TD>Paper</TD>
<TD><INPUT type="text"name="a" onBlur="AnonymousCheck1 ()">
</TD></TR><TR> <TD>Password</TD>
<TD><INPUTtype="password"name="pass"onBlur="AnonymousCheck()"></TD>
</TR><TR> <TD><INPUTtype="reset" name = "Reset" value="Reset"></TD>
<TD><INPUT type="submit"name = "ok" value="Verify" ></TD></TR>
</TABLE>
</FORM>
……………………………
……………………………
Statements
What Required
Answer Column
If(document.Myform.a.value =='CS101 AND <INPUT type="text" name="a" …
What change will occur if we altername=”a” to name =”ab”
if((document.Myform.a.value =='CS101'||document.Myform.a.value == 'cs101')&&
(document.Myform.pass.value =='101'||document.Myform.pass.value =='vu'))
When the statement will become true.
functionAnonymousCheck1()
When this function willbe executed
onBlur="AnonymousCheck()
What is onBlur role here?
Over all theme of thecode
Statements
What Required
Answer Column
If(document.Myform.a.value =='CS101 AND <INPUT type="text" name="a" …
What change will occur if we altername=”a” to name =”ab”
if((document.Myform.a.value =='CS101'||document.Myform.a.value == 'cs101')&&
(document.Myform.pass.value =='101'||document.Myform.pass.value =='vu'))
When the statement will become true.
functionAnonymousCheck1()
When this function willbe executed
onBlur="AnonymousCheck()
What is onBlur role here?
Over all theme of thecode
Explanation / Answer
If you run this problem in browser you can get the answer? dontyou?
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.