JavaScript DHTML/Javascript Objects/plugin

Материал из Web эксперт
Версия от 10:23, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

Plugin: description, filename, name

   <source lang="html4strict">
   

<html> <body> <button onclick="alert(navigator.plugins[0].description);">mimetype</button> <button onclick="alert(navigator. plugins[0].filename);">suffixes</button> <button onclick="alert(navigator.plugins[0].name);">type</button> </body> </html>


     </source>
   
  


"refresh()" Example

   <source lang="html4strict">
   

<head> <script> function function1() {

   window.location.href = "http://www.macromedia.ru/shockwave/download/"
   navigator.plugins.refresh(); 

} </script> </head> <body><button onclick="function1();">Add new plug-in</button> </body> </html>


     </source>