Computer Science-Javascript

posted by .

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>

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. Literature

    Do you think the title "Huswifery" is a good title for Edward Taylor's poem?
  2. computer programming (PYTHON)

    My first page is <html> <head> <title>Name Game</title> </head> <body> <h1>Name Game</h1> <form action="namegame.py"> <p> Enter your name: <input type="text" name="name" …
  3. computer programming (PYTHON)

    My first page is <html> <head> <title>Name Game</title> </head> <body> <h1>Name Game</h1> <form action="namegame.py"> <p> Enter your name: <input type="text" name="name" …
  4. Javascript

    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 …
  5. Computer Science - MATLAB

    In a problem I had to create a animation of the function sin(x-a) were a ranged from 0 to 8pi Code: x=[-2*pi:.00001*pi:2*pi]; a=0; y=sin(x-a); g=plot(x,y); grid on; title('sin(x-0)') set(g,'EraseMode','xor') while a<=8*pi a=a+.1*pi; …
  6. Javascript

    How do take this following javascript and put in external javascript. <html> <head> <script language="javascript" type="text/javascript"> test(); function counter(array){ var negatives =0; var zeroes =0; var positives=0 …
  7. English

    1. What is the name for the head of an orphanage?
  8. Computer science

    I want to make my traffic lights run automatically without any user input. I have created this code so far but the images don't show up please help. My code: <!DOCTYPE html> <html> <head> <script type="text/javascript"> …
  9. English/Language Arts

    On a Works Cited page, which of the following should be in italics?
  10. English

    On a Works Cited page, which of the following should be in italics?

More Similar Questions