Monday
July 27, 2015

Homework Help: Computer Science-Javascript

Posted by Anonymous on Tuesday, November 16, 2010 at 3:15pm.

Can you check my code and tell me why the prompts are not showing up on the webpage:


<html>
<Head>
<title>Homework 8</title>
</Head>



<body>
I like the color purple.<br>


</br>

<scriptlanguage="javascript" type="text/javascript">
<!--


color=prompt("Choose a color (red, yellow, blue, purple, orange, green):");



text=prompt(("Choose a color (red, yellow, blue, purple, orange, green):");



link=prompt("Choose a color (red, yellow, blue, purple, orange, green, pink):");



vlink=("Choose a color (red, yellow, blue, purple, orange, green, pink):");



document.bgcolor=color;

document.fgcolor=text;

document.linkcolor=link

document.vlinkcolor=vlink



//-->
</script>

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

More Related Questions

Members