SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Wizard jag5311's Avatar
    Join Date
    Jan 2003
    Location
    Somewhere in Indiana
    Posts
    3,082
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Prompt Boxes in IE...can it go more than 2 lines

    Hi Everyone,

    I am attempting to create some dialog/prompt boxes (where it requires you to enter text in) that allows me to put more than 2 lines of text in. Everything but IE seems to handle it just fine, but IE is having problems.

    Any solutions that any of you know of?

    Thanks,
    Bryan

  2. #2
    SitePoint Wizard gRoberts's Avatar
    Join Date
    Oct 2004
    Location
    Birtley, UK
    Posts
    2,439
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you want to have a new line in your alert/prompt/confirm boxes, use \n

    ie

    alert('this is\na\ntest\n\nblah\nah\na')



Bookmarks

Posting Permissions

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