Wrox Programmer Forums
|
BOOK: Beginning JavaScript 5th Edition
This is the forum to discuss the Wrox book Beginning JavaScript, 5th Edition by Jeremy McPeak; 978-1-118-90333-9
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning JavaScript 5th Edition section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 3rd, 2016, 10:04 AM
Authorized User
 
Join Date: May 2015
Posts: 46
Thanks: 1
Thanked 0 Times in 0 Posts
Default Ch1

When I open the page in browser the red color not appear to me in Example 1
Code:
<script type="text/javascript">
// script 2
alert("Second script block");
document.background="red";
</script>
 
Old April 3rd, 2016, 10:08 AM
Authorized User
 
Join Date: May 2015
Posts: 46
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Sorry
I fix the problem
I should use bgColor instead of background
But I Have Q:I java Script Case Sensitive
 
Old February 4th, 2017, 02:22 PM
Registered User
 
Join Date: Jan 2017
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default bgColor is an obsolete attribute in html5

I downloaded ch. 1 of this book in my search for a good book to review JavaScript. It looks like good one, but already in chapter 1 I have come across code that doesn't work for me, because 'bgcolor' has been made obsolete in html5. Why is a new version of a coding book using obsolete code?

BTW, I searched online and found that it should be document.body.style.backgroundColor

I still think this is a great book, and will buy the online version, but this code disappointed me, because I was really depending on something that was up-to-date.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch1 P.37 Code Mystery John Moore BOOK: Beginning Android Application Development 3 September 2nd, 2011 04:11 PM
Ch1 multiple username with same email address Albion BOOK: PHP and MySQL: Create-Modify-Reuse ISBN: 978-0-470-19242-9 3 June 6th, 2011 05:01 PM
ch1 userId nativerun BOOK: PHP and MySQL: Create-Modify-Reuse ISBN: 978-0-470-19242-9 3 January 15th, 2010 08:38 AM
Possible Error? - CH1 Regiser.php ArthurDent BOOK: PHP and MySQL: Create-Modify-Reuse ISBN: 978-0-470-19242-9 2 August 12th, 2008 02:50 AM
Ch1, why using CollectionBase class? NewTitle2007 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 3 August 5th, 2007 06:32 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.