[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

return confirm, line break

Posted on 2005-04-06
4
Medium Priority
?
1,208 Views
Last Modified: 2008-03-17
I'm using the following to display a "confirm" box.
Is there a way to make a "line break" in the message?

onclick="return confirm('<?php echo $msg; ?>');
0
Comment
Question by:kgp43
  • 3
4 Comments
 
LVL 25

Expert Comment

by:archrajan
ID: 13720477
return confirm("Are your sure /n you want to quit?")
0
 
LVL 25

Accepted Solution

by:
archrajan earned 500 total points
ID: 13720484
oops typo
<input type = "button" onclick = "return confirm('Are your sure \n you want to quit?')">
0
 

Author Comment

by:kgp43
ID: 13720733
perfect :)
0
 
LVL 25

Expert Comment

by:archrajan
ID: 13720742
Thanks for the points :)
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

865 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question