Sunday
April 20, 2014

Homework Help: Javascript

Posted by Anonymous on Wednesday, November 17, 2010 at 2:10pm.

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>

<script language="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

Computer Science-Javascript - Can you check my code and tell me why the prompts ...
computer programming (PYTHON) - My first page is <html> <head> <...
computer programming (PYTHON) - My first page is <html> <head> <...
Math - help with these questions~ Thank you 1. Determine the interval(s) on ...
Precalculus - 1. Determine the interval(s) on which x^2 + 2x -3>0 a)x<-3, ...
Precalculus - Help with these questions help with these questions~ Thank you 1. ...
math - Um... i cant find anything about this in the textbook, help??!! 1. m - 7...
programming - In order to share an XML file among different systems and programs...
programming - In order to share an XML file among different systems and programs...
Science -CHECK MY WORK- - a.) How can you describe the location of vanadium (V, ...

Search
Members