The_Other_One
VIP Member
I'm a little confused with my latest javascript assignment... Basically we have to make a webpage where you are given buttons to click and they change the background or text colors accordingly. That much is done. Now I need to make something that displays what colors are being displayed...
When the page initially loads, I can get it to display whatever the background color is, but it won't change...
I'm fairly new to JS so I'm probably doing something rather stupid
When the page initially loads, I can get it to display whatever the background color is, but it won't change...
Code:
<script type="text/javascript">document.write("The current background
color is "+document.bgColor)</script>
I'm fairly new to JS so I'm probably doing something rather stupid