settings with color and alert messages using Javascript

<!DOCTYPE html>

<html lang="en">
<meta charset="utf-8" />
<title>Chapter 1, Example 2</title>
<body bgcolor="white">
<p>Paragraph 1</p>
// script block 1
alert("First Script Block");
<p>Paragraph 2</p>
// script block 2
document.bgColor = "red";
alert("Second Script Block");
<p>Paragraph 3</p>


Key source : Beginning JavaScript, 5th Edition (wrox)


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: