Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html lang="en">
- <head>
- <title>HTML5 opera color selection</title>
- <script>
- function ChangeBgColor(color)
- {
- document.bgColor = color;
- document.ChangeColor.PickedColor.value = color;
- }
- </script>
- </head>
- <body bgcolor="#ffffff">
- <header>
- <h1>HTML5 opera color selection</h1>
- </header>
- <form name="ChangeColor">
- <p>choose Background Color of your choice
- <input name="colorpicker" type="color" onchange="ChangeBgColor(colorpicker.value);">
- </p>
- <p>
- Hexadecimal value of Selected Color
- <input name="PickedColor" type="text">
- </p>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement