Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Confirm Java script popup in asp.net

Posted on 2009-05-04
1
Medium Priority
?
721 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 2000 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Desired Skill Set for Microsoft Dynamics CRM Technical Resources – Part I
Desired Skill Set for Microsoft Dynamics CRM Technical Resources – Part III
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

610 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