-
First, I need to add a line break into a string in JavaScript. How do I do this?
Next, is there a limit to the amount of characters in a string in JavaScript?
And the last question is how do I pass arrays to functions? Anything special here? An example would be great.
Thanks for your help.
-
You can just put a <br> tag in a string.
-
Q1
Code:
<script language='Javascript'>
alert("line 1 \n line 2 ")
</script>
Q2
Don't think so. Try and braek it yourself
Q3
Just like any other parameter
-
Oh, yeah that would work for alerts, i assumed he was talking about document.writing.
-
Thanks for the help, you guys answered my questions. I got it to work.