javascript help

How do I create a short script in JavaScript that writes two lines of text. With the first line of text being in Green and the second line of text in Blue.

How would you write a line of JavaScript that prompts the user to input his name and assigns this value to a variable called user_name. For the prompt text, use "Enter your name below.".

go to and click on javascript, you can find examples of pretty much anything you need there

no habla Javascript


script id=clientEventHandlersJS language=javascript>
function Button1_ {
 var s = window.prompt("What is your name, jerk?", "Bob");
     alert("hi " + s + ", you're a jerk!"); = "green"; = "blue";
<INPUT id="Button1" type="button" value="Button" name="Button1" language=javascript >="return Button1_><br><br>
<div id="TextLine1">Turn this green</div><br>
<div id="TextLine2">Turn this blue</div>