Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Equivalent of new line break in Javascript

Status
Not open for further replies.

theScien

Technical User
Aug 27, 2003
98
PT
Hi,

I would like to know what's the equivalent of the HTML <BR> tag to force a new line in a confirm box.

I.e. I have this: confirm(&quot;Are you sure? If so go ahead&quot;);

But I would like the (If so go ahead) to be in a new line under the (Are you sure?), there's got to be a break charater for this.

Thanks.

If you haven't heard of it, then you most likely don't need it.
---------------------------------------------------------------------
---------------------------------------------------------------------
 
Code:
confirm(&quot;Are you sure?\n If so go ahead&quot;);

the \n is new line character...


Known is handfull, Unknown is worldfull
 
Thanks, just what I needed.

If you haven't heard of it, then you most likely don't need it.
---------------------------------------------------------------------
---------------------------------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top