Newline character in Javascript
Posted: Tue Nov 04, 2008 9:49 pm
Hi ,
I am unable to use the newline character in javascript . My code is :
<html>
<head>
</head>
<body>
<script type="text/javascript">
document.write("Hello world \n Welcome to Javascript");
</script>
</body>
</html>
The output is : Hello world Welcome to Javascript.
Can anyone help ?
I am unable to use the newline character in javascript . My code is :
<html>
<head>
</head>
<body>
<script type="text/javascript">
document.write("Hello world \n Welcome to Javascript");
</script>
</body>
</html>
The output is : Hello world Welcome to Javascript.
Can anyone help ?