Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Mar 2005
    Posts
    114
    Thanks
    4
    Thanked 3 Times in 3 Posts

    2 second question

    I know, this is a no brainer, but I forgot.

    I have a javascript confirm box, how do i make the text on it drop to the next line on command? I.E. If I wanted to write on it:

    *Hi there, this is some sample text!*

    But wanted to to appear like

    *Hi there, this is
    some sample text!*

    how would i go about doing that? I know its something simple, I'm just having a brain fart here.

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,042
    Thanks
    0
    Thanked 251 Times in 247 Posts
    "Hi there, this is\nsome sample text!"

    But take note that confirm box in IE can only accomodate few lines.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •