/    Sign up×
Community /Pin to ProfileBookmark

Editting an HTML code to include a Javascript code

Hi,

I have a Javascript code to set and retrieve a cookie value. I want to place this code on a webpage so that when that webpage is launched it prompts me to set a name for the cookie and when i access the particular webpage again, it greets me by the cookie name.
I am unable to figure out how to edit the webpage to hold my cookie code so it resides on the server.
A quick help on this is greatly appreciated.

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

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