Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- </head>
- <body>
- <section id="kolor">
- <div class="move">
- <input type="button" value="Wstecz" onClick="history.back();" />
- <input type="button" value="Dalej" onClick="history.forward();" />
- </div>
- <div class="color">
- <input id="red" type="button" value="red" onclick="red()"; />
- <input id="blue" type="button" value="blue" onclick="blue()"; />
- <input id="green" type="button" value="green" onclick="green()"; />
- </section>
- <script>
- function red(){
- document.getElementById("kolor").style.background-color = "red";
- }function blue(){
- document.getElementById("kolor").style.background-color = "blue";
- }function green(){
- document.getElementById("kolor").style.background-color = "green";
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement