Solved

Confirm Java script popup in asp.net

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

This is a walkthrough guide I wrote whilst upgrading my on-premise MS Dynamics CRM 3.0 deployment to 4.0. This covers the actual installation of the product to a working level for my system, I ran into a lot of issues that the steps below fixed so h…
On Sep 22nd 2014 Microsoft released Update Rollup 1 for Microsoft Dynamics CRM 2013 Service Pack 1 and back in July Update Rollup 3 was released.  So we now have:   Update Rollup 1Update Rollup 2Update Rollup 3Service Pack 1Update Rollup 1 for S…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

746 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now