Returns in alerts

admin

Administrator
Staff member
When writing the message that will appear when an alert is called how can you put a carriage return - in your code - so that the message does not go off the screen?
I don't mean putting \n in the message text to create a line break when the message is displayed - I mean how to you put a line break in your code.

Like:
alert('This is a very long message. I want <- what goes here
you to think good and hard about why <- and here
you entered text in a field that obviously <- and here
was expecting numbers.')

Thanks.
 
Back
Top