|
I want a simple button which when i click makes a pop-up.... whatever value i enter in there (as long as a valid 6 numerals) will become the background creating a way for me to easily test different hexcodes...
but this isn't working... i dunno why?
help please
<html>
<head>
<script type="text/javascript">
function askfor( )
{
colortest=prompt("Type Hex-code you wish to test","here:");
}
</script>
</head>
<body>
<form>
<input type="button" value="hexcode testor"
onClick="askfor() " >
<body bgcolor='"#"+colortest'>
</form>
</body>
</html>
|