Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  <script>
    var i = 0;
    var inp=document.createElement("input"); 
    inp.setAttribute('type','color');
    inp.setAttribute('id','colo_'+i);
    inp.value = '#ffffff';
    inp.setAttribute('class','datafield');
    document.body.appendChild(inp);
  </script>
</body>
</html>
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers