|
-
Mar 30th, 2001, 04:56 PM
#1
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.
-
Mar 30th, 2001, 07:40 PM
#2
Fanatic Member
You can just put a <br> tag in a string.
Alcohol & calculus don't mix.
Never drink & derive.
-
Mar 31st, 2001, 03:18 PM
#3
Frenzied Member
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
-
Mar 31st, 2001, 04:54 PM
#4
Fanatic Member
Oh, yeah that would work for alerts, i assumed he was talking about document.writing.
Alcohol & calculus don't mix.
Never drink & derive.
-
Mar 31st, 2001, 08:16 PM
#5
Thanks for the help, you guys answered my questions. I got it to work.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|