Post a New Question

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>

<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>

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. Computer Science-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> <scriptlanguage="javascript" …
  5. 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 …
  6. English

    1. What is the name for the head of an orphanage?
  7. Title

    Hi I need help thinking of a title for my graphic novel. It is about India and its exploitation of children. Could someone help me think of a cool title and an idea to make the title look unusual. Like maybe a bleed or something. Thanks!!
  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

Post a New Question