HTML APIs


  1. When the user leaves instance’s page which function is called?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    When the user leaves instance’s page or closes its window a plug-in instance is deleted. Then Gecko calls the function NPP_Destroy to inform plug-in that the instance is being deleted. Plug-in API calls and callbacks use main Navigator thread.


  1. Which of the following is not the directory in Windows for plug-ins?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    When Gecko based browser starts, it checks certain directories for plugins. Windows have MOZ_PLUGIN_PATH, Profile directory\plugins, %APPDAT%/Mozilla\plugins, Plug-ins with toolkit bundles, HKEY_CURRENT_USER\Software\MozillaPlugins\*\Path are some of the directories in windows.



  1. Which of the following is not the directory in Mac OS X for plug-ins?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    /Library/Internet Plug-Ins, ~/Library/Internet Plug-Ins, Plug-ins with the toolkit bundles, /System/Library/Frameworks/JavaVM.framework/Versions/Current/Resources, Profile directory/plugins are some of the directories in Mac OS X for plug-ins.


  1. Which of the following specifies the expiry time for cached location information?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    maximumAge specifies the expiry time in milliseconds for cached location information, timeout property is the number of milliseconds the web application is willing to wait for a position.



  1. Which of the following plug-in file type is used in MS Windows?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    The plug-in file type depends on the platform. The file type in MS Windows is .DLL which is Dynamic Link Library files. Unix has .SO or .DSO files which are shared objects. MAC OS X has file PPC/x86/Universal loadable Mach-O bundle.