/    Sign up×
Community /Pin to ProfileBookmark

I am looking for a tutorial page (very easy)that includes a list of how to make changes in any text included in a piece of javascript. These are some things i’m looking for – how to add a comma without throughing the script off, how to chg color of text, how to make text bold etc or any other punctuations.

Thanks for any input

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@JPnycNov 13.2004 — You want to change the text display to present the script for people to read, or you want to run the script? If it's the latter, why would anyone care how text in a script looks when they can't see it? Or are you talking about formatting HTML and content within a page dynamically generated by a Javascript?
Copy linkTweet thisAlerts:
@alhmailboxauthorNov 13.2004 — Formatting HTML and content within a page dynamically generated by a Javascript.
Copy linkTweet thisAlerts:
@JPnycNov 13.2004 — You format it just like any other HTML. Write your html page the way you want it. Then, put the whole thing into document.write statements. Commas are not a problem, however if you have "" and/or ' inside the content, precede them with a . That is except for the very 1st and last ones, which must encompass the entire string.
×

Success!

Help @alhmailbox 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.19,
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,
)...