Background Color Input
Trying to write something where, after you have entered in a hex color, and clicked the "change color" button, it changes your background color to 'x' hex color.
Thanks, i'm a noob!
<html>
<head>
<title>This is a test-site</title>
<script type="JavaScript">
function colorchange()
{
document.bgColor = color;
}
</script>
</head>
<body bgcolor="#708090">
<form align="center">
HEX Color: <input type="test" name="color" id="color" value="" />
</form>
<button type="button" onclick="javascript :colorchange('')">Change Color</button>
</body>
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Bookmarks