Solved

Confirm Java script popup in asp.net

Posted on 2009-05-04
1
717 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
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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.
Desired Skill Set for Microsoft Dynamics CRM Technical Resources – Part I

839 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