View Single Post
  #1 (permalink)  
Old October 21st, 2011, 03:36 PM
Nicolasin88 Nicolasin88 is offline
Registered User
 
Join Date: Oct 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question I get a black screen in Firefox from wrox book example? Help?

Hi there...I'm a total rookie and this will be worth a few laughs but I copied this code.....

<html>
<body bgcolor=”WHITE”>
<p>Paragraph 1</p>
<script type=”text/javascript”>
document.bgColor = “RED”;
</script>
</body>
</html>

It's supposed to write Paragraph 1 in black on a red background...

and I got a black screen.....

This is example 1 so it's a bit embarrasing but I'm trying to learn...I checked the java's enabled in firefox 3.6 so there isn't much wrong that side....?

Surely it should work??

Cheers all ;o)