Link to home
Start Free TrialLog in
Avatar of greg_c
greg_c

asked on

Putting Break's in a line

Hi

I have the following code:

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN”
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<body>

<script type="text/javascript">

var greetingString="Hello";
var myName = prompt("Please enter your name",  " ");
var concatString;

document.write(greetingString +"      "+myName);


concatString = greetingString + " "+ myName;
document.write(concatString);

</script>
</body>

I want to put a break in it so the name appears on two separate lines.  How do I do this.

Thanks

Greg
ASKER CERTIFIED SOLUTION
Avatar of Gary
Gary
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of greg_c
greg_c

ASKER

Thank you.