JavaScript Reference/Javascript Objects/Dialog Helper

Материал из Web эксперт
Перейти к: навигация, поиск

"Dialog Helper" Example

   <source lang="javascript">
   

<html> <body> <object id="myDhelper"

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

</object> <button onclick="myDhelper.chooseColorDlg();">Show color dialog</button> </body> </html>


     </source>
   
  


"Dialog Helper" JavaScript Collections

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | JavaScript |blockFormats fonts | +----------------+--------------------------------------------------------------+

     </source>
   
  


"Dialog Helper" JavaScript Methods

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | JavaScript |chooseColorDlg getCharset | +----------------+--------------------------------------------------------------+

     </source>
   
  


"Dialog Helper" Syntax and Note

   <source lang="javascript">

Note: Cccess to the color dialog box. You can create this object using the <object> element, and you can reference it in JavaScript through its id attribute value.

Syntax:

document.all.dialogHelperID.memberName


     </source>