Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
onopen used when connection to server is opened - HTML
Home
>>
Category
>>
Programming Language (MCQ) questions
>>
HTML
Q. Which event will be used when a connection to the server is opened.
- Published on 19 Oct 15
a.
onopen
b.
onmessage
c.
onerror
d.
None of the above
ANSWER: onopen
Related Content
Networking (
207
)
Database (
97
)
C programming (
58
)
Software Engineering (
28
)
SQL (
5
)
HTML (
74
)
Web Technologies (
11
)
Data Structure (
140
)
Operating System (
96
)
Java (
25
)
Oracle (
5
)
C++ (
50
)
Algorithms (
7
)
PL/SQL (
13
)
JavaScript (
7
)
XML (
0
)
CSS (
1
)
Discussion
Nirja Shah
-Posted on 05 Nov 15
onopen
- This event occurs when a connection with an event source is opened.
onmessage
- This event occurs when a message is received through an event source.
- The event object for the onmessage event supports the following properties:
1. data - Contains the actual message
2. origin - The URL of the document that invoked the event
3. lastEventId - the identifier of the last message seen in the event stream
onerror
- This event occurs when an error occurs with the event source.
- Whenever a connection is disrupted an error occurs.
- If this happens, the EventSource object will automatically attempt to reconnect to the server.
➨
Post your comment / Share knowledge
Required!
Required!
Invalid Email Id!
Required!
Enter the code shown above:
Please enter the code shown above
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
MCQs
English
Tutorials
Download
▲