HTML APIs
- Which will specify placement of controls on map?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
ControlPosition specifies placement of controls on map, StreetViewControlOptions provides options for rendering of street view control, ScaleControlStyle specifies kind of scale control to display, ScaleControlOptions lsit down options for rendering sacle control.
- Which of the following plug-in can’t be embedded by <object> element?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
All the browsers support
- What is the prefix of all the browser-specific functions?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
It is a convention that all of the browser specific functions have the prefix ‘”NPN” and all of the plug-in specific functions have the prefix “NPP”. Gecko calls plug-in API function NP_Initialize at the time when plug-in code first loaded.
- When is the instance created, which plug-in API function is called?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
NPP_New function is called by the browser when an instance is created. There can exist multiple instances of the same plug-in. There are two conditions for it first if there are multiple embedded objects on a single page, second if several browser windows are open.
- Which function will be called when the last instance of a plug-in is deleted?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
When the last instance of a plug-in is deleted Gecko calls the function NP_Shutdown. The plug-in code is unloaded from memory. Plug-ins consume no resources when not loaded, it only consumes a little disk space.