...
NVS PGT CS 2017 Part-B
October 14, 2023
Application-Layer-Protocol
October 14, 2023
NVS PGT CS 2017 Part-B
October 14, 2023
Application-Layer-Protocol
October 14, 2023

NVS PGT CS 2017 Part-B

Question 14
Study the code given below:
< HTML >
< HEAD >
< SCRIPT LANGUAGE = “JavaScript” >
function start ()
{
alert (“Event Occured”)
}
< /SCRIPT > < /HEAD >
< BODY onLoad = “Start()” >
< h1 > Guess the event < /H1 >
< /BODY > < /HTML >
How many times will the function Start () be called ?
A
Once every time the system starts.
B
Once every time the web page is refreshed.
C
Only once when the window is opened.
D
Will not be called as the event handler is wrong.
Question 14 Explanation: 
onload() event is execute a JavaScript immediately after a page has been loaded
Correct Answer: B
Question 14 Explanation: 
onload() event is execute a JavaScript immediately after a page has been loaded
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!