/    Sign up×
Community /Pin to ProfileBookmark

Username Cookie – Textbox, Display & Delete

Hey,

I need help for one of my projects and I’m a newbie in Javascript: I am making a website with a chat, forum… and I think it would better if the people had the possibility to input their name in a textbox and then it would save it in a cookie. It’s like [URL=”http://javascript.internet.com/cookies/n-browser.html”]this[/URL] script but with a textbox instead of a prompt. I would also like to know how to make it so that when the user closes the browser it deletes the cookie, and ONLY then.

Thanks a lot

Fire Cat

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @Fire_Cat 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.2,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

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