JavaScript DHTML/Document/Charset

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

"charset" Example

   <source lang="html4strict">
   

<html> <body> <button onclick="alert(document.charset);">Character Encoding for Document</button> </body> </html>


     </source>
   
  


"defaultCharset" Example

   <source lang="html4strict">
   

<html> <body> <button onclick="alert(document.defaultCharset);">Default Charset</button> </body> </html>


     </source>
   
  


"getCharset()" Example

   <source lang="html4strict">
   

<html> <body> <script language="JavaScript">

   function function1() {
       alert(myDiaHelp.getCharset("Verdana"));
   }

</script> <input type="button" value="GetCharSet" onclick="function1();"> <object id="myDiaHelp"

       classid="clsid:3050f819-98b5-11cf-bb82-00aa00bdce0b" 
       width="0px" 
       height="0px">

</object> </body> </html>


     </source>