HTML APIs


  1. Which will specify placement of controls on map?











  1. 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.


  1. Which of the following plug-in can’t be embedded by <object> element?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    All the browsers support element. It also defines an embedded object within the HTML document. It is used for embedding plug-ins like PDF readers, Flash Players, Java applets in the web page.



    1. What is the prefix of all the browser-specific functions?











    1. 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.


    1. When is the instance created, which plug-in API function is called?











    1. 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.



    1. Which function will be called when the last instance of a plug-in is deleted?











    1. 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.