Enter initial color
i.e. FA23DB

web safe colors only
Show Returned VALUE

Sample Code

<script language=javascript1.2>
// return value will be here
var colorhex = '';
var w;
function pop() {
  if (document.forms.color.what.checked){w=180;}else{w=630;}       
  var colorwin = open("","colorpicker",
  "width=" + w + ",height=440,status=no,directories=no," +
  "location=no,menubar=no,scrollbars=no,toolbar=no");
  if (colorwin.opener == null) newin.opener = self;  
  colorwin.document.close();
  colorwin.focus();
  return true;
}
</script>
<body>
<form name="color" onSubmit="return(pop());"
 action="p_gen.cgi" target="colorpicker">
<input type=text name=hex size=10><br>
<input type=checkbox name=what value=wo> web safe colors only<br>
<input type=submit value="Pop Picker Window">
</form>