Results 1 to 5 of 5

Thread: Various JavaScript Questions...

  1. #1
    hellswraith
    Guest
    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.

  2. #2
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772
    You can just put a <br> tag in a string.
    Alcohol & calculus don't mix.
    Never drink & derive.

  3. #3
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    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
    Mark
    -------------------

  4. #4
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772
    Oh, yeah that would work for alerts, i assumed he was talking about document.writing.
    Alcohol & calculus don't mix.
    Never drink & derive.

  5. #5
    Guest
    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
  •  



Click Here to Expand Forum to Full Width