Thursday, October 5, 2023
 Popular · Latest · Hot · Upcoming
12
rated 0 times [  17] [ 5]  / answers: 1 / hits: 81321  / 15 Years ago, thu, february 26, 2009, 12:00:00

I have the following statement:



btnApply.Attributes.Add(onclick, alert('Must be a member to Use this Tool'));


Is there a way to add a new line. I tried, but it showed the in the text. In addition, can I add a link that would close the alert and take the user to another page?



How can I do this with my example?



When I added the n, the alert doesn't show up.


More From » javascript

 Answers
11

You can't use HTML, but you can add line breaks:



alert('line1nline2');


If a rich modal popup is really what you want though, you can use jQuery's dialog feature and put whatever you want in there.


[#99924] Wednesday, February 18, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
breap

Total Points: 606
Total Questions: 96
Total Answers: 108

Location: Djibouti
Member since Sun, Feb 27, 2022
2 Years ago
breap questions
Thu, Jun 24, 21, 00:00, 2 Years ago
Wed, Mar 18, 20, 00:00, 4 Years ago
Mon, Oct 7, 19, 00:00, 4 Years ago
;