?
Solved

Confirm Java script popup in asp.net

Posted on 2009-05-04
1
Medium Priority
?
720 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

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…
Desired Skill Set for Microsoft Dynamics CRM Technical Resources – Part I
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses

752 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