JavaScript Reference/Javascript Methods/ChooseColorDlg
"ChooseColorDlg()" Example
<source lang="javascript">
<html> <body> <script language="JavaScript"> function function1(){
var myColor = dlgColor.ChooseColorDlg(); alert(myColor);
} </script> <object id="dlgColor" classid="clsid:3050f819-98b5-11cf-bb82-00aa00bdce0b"> </object> <button onclick="function1();">Choose color</button> </body> </html>
</source>
"ChooseColorDlg()" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |Dialog Helper | +----------------+--------------------------------------------------------------+
</source>
"ChooseColorDlg()" Syntax, Parameters and Note
<source lang="javascript">
Note: Pick a color by using the browser"s color selection dialog window. The Dialog Helper object must be created by supplying a classid code.
Syntax:
document.all.DialogHelperID.ChooseColorDlg(param1)
Parameters:
param1 Optional; the default color selected when the dialog window opens. </source>