JavaScript Reference/Javascript Methods/ChooseColorDlg
"ChooseColorDlg()" Example
<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>
"ChooseColorDlg()" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |Dialog Helper |
+----------------+--------------------------------------------------------------+
"ChooseColorDlg()" Syntax, Parameters and Note
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.