/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] Javascript Alert

Is there a code or anything to skip a line in an alert code?

like, how it is <br> in HTML, is there one for a Alert box?

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@scragarFeb 04.2008 — n
Copy linkTweet thisAlerts:
@Dragon_V_5_BETAauthorFeb 04.2008 — Im sorry, i dont understand, could you please show me how to place it? i added /n and it acts like its part of the text
Copy linkTweet thisAlerts:
@scragarFeb 04.2008 — alert("some text with a n new line.");

it's a backslash, not a forwardslash.
Copy linkTweet thisAlerts:
@Dragon_V_5_BETAauthorFeb 04.2008 — oh, thats where i had it wrong! THANK YOU SO MUCH!!
×

Success!

Help @Dragon_V_5_BETA spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...