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(greetingStr ing +" "+myName);
concatString = greetingString + " "+ myName;
document.write(concatStrin g);
</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
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(greetingStr
concatString = greetingString + " "+ myName;
document.write(concatStrin
</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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER