/    Sign up×
Community /Pin to ProfileBookmark

when a viewer enters name into textbox and clicks OK button, the name will be displayed as WELCOME + NAME + TO MY WEBSITE on homepage. How do I do that?

Please help

thank you

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@ExuroAug 24.2003 — The way you'd do this is with cookies. HTML Goodies has a nice little article on using cookies with JavaScript:

http://www.htmlgoodies.com/beyond/cookie.html

Even if you have just enough ability with JavaScript to edit a script so it kind of does what you want, this should be good enough for you. They have the cookie setting and retrieving scripts on the page, and all you'd have to do is alter them slightly to fit your needs. Hope that helps!
×

Success!

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