/    Sign up×
Community /Pin to ProfileBookmark

I have the following snippet of code. The new line (n) works well in IE, but not in Firefox. What would i have to do to get it working? Thanks

var strMsg = “Thank you for selecting Nations 1st Communication Voicemail n” +
“By clicking the “OK” button below, I confirm the information submitted and that I am 18 years old or older n” +
“and are duly authorized by the telephone account owner to make changes to and / or incur charges on this telephone n” +
“bill account provided. Further I confirm my understanding and approval of the Terms and Conditions and Privacy Policy n” +
“of this offer. The voicemail service is $12.95 per month and will appear on your local telephone bill on the ADX n” +
“Teleservices page as being billed on behalf of A communication company unless you cancel. You can cancel at anytime n” +
“by calling Customer Service at 800-123-4567 or by emailing us at [email][email protected][/email] or writing us at n” +
“Processing Center, PO Box 87964, ACityinFL, FL 33766.”;

confirm(strMsg)

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@KorNov 12.2007 — Oh, but it works. Except that FF has a definite max width of the confirm window shorter than the IE's. I am afraid there nothing you can do (except for shortening the sentences).
Copy linkTweet thisAlerts:
@FangNov 12.2007 — The new line works correctly. you have no control over the width of the confirm window. Consider using a different format or method to display the message.
Copy linkTweet thisAlerts:
@bxgirlauthorNov 12.2007 — Thanks all for such a prompt response.
Copy linkTweet thisAlerts:
@bxgirlauthorNov 13.2007 — What's another alternative in JS to a confirm method?
Copy linkTweet thisAlerts:
@TJ111Nov 13.2007 — Create a custom div through the DOM, or hidden in your HTML, then display it with javascript.
×

Success!

Help @bxgirl 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 5.18,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...