How to create two line alert
I want to create an alert with two lines
Sat March 3 12:35:58 EST 2012
I have used syntax alert("Today's date is : </br> "+dt);
and alert("Today's date is : "+<br />dt);
But none is working. Is it possible to create two line alert ? If yes, how ?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" >
alert("This is test alert");
var dt = new Date();
alert("Today's date is : "+dt);
var dt = new Date();
<input type="button" value="Change Background Color" onclick="backgcolor()" />
<input type="button" value="Change Text Color" onclick="txtcolor()" />
<input type="button" value="Test Alert" onclick="alertfn()" />
<input type="button" value="Get Date" onclick="displayDate()" />
<input type="button" value="Write Date" onclick="writeDate()" />
<br /><br />
Unlike Java, C++ doesn't incorporate a debugger into every application. If you need one you have to provide it. Your compiler typically has one.
Just start it up and run your application. Car.cpp:381:runtime_exception:Could not find the brake Police.cpp:123:traffic_observation_exception: Speed too high
Driver.cpp:2131:existential_exception:I am in jail. If you happen to be developing on a system like Linux, then you could use one of many utilities such as electric fence. These are designed to
provide the platform specific capabilities you seem to be looking for, ∧ unless I'm mistaken, they tie into GDB. Well, I want this stack trace as a final output for the end user. I am
writing a kind of compiler where I process user input. I have a parser that reads user input and constructs sth called Items or int primitives
alerts don't understand HTML. they understand text and character entities. the character entity for a line return is:
to expound, the backslash is the escape sequence, and the "n" is the character code for a line return. if you type "\\", you'll see a single backslash in an alert, for instance.
Originally Posted by RodionGork
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)