Solved

Confirm Java script popup in asp.net

Posted on 2009-05-04
1
719 Views
Last Modified: 2012-05-06
I would like to have a javascript pop up messagebox with 'ok' and 'cancel' button when the user clicks submit. also in the message I would like to have multiple lines and not just one line. So the messagebox should look something like

are you sure you want to submit.
document x will be submitted.
document y will be submitted.
you wont be able to revert your changes once submitted.

   ok button      cancel button

can someone please tell me how to have the pop up with multiple lines in the message.
0
Comment
Question by:pratikshahse
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 10

Accepted Solution

by:
webwyzsystems earned 500 total points
ID: 24300483
function test(){
var x=confirm("Going to submit?\r\nDocumentA\r\nDocumentB");
return x;
}

Note the use of \r\n combo - that gives a new line. Watch out for text limits in the confirm box.
function returns TRUE if ok was clicked, otherwise false.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Automatically creating a Trello card using data from a Microsoft Dynamics CRM record turned out to be an easy project that yielded great results.  Here's how I did this for an internal team at General Code.
For cloud, the “train has left the station” and in the Microsoft ERP & CRM world, that means the next generation of enterprise software from Microsoft is here: Dynamics 365 is Microsoft’s new integrated business solution that unifies CRM and ERP fun…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

690 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