/    Sign up×
Community /Pin to ProfileBookmark

Help for a novice

I’m wondering if there is a way to have a link go dead or disapear after it has been clicked once. Sorry if this is boring and mundane!!

to post a comment
JavaScript

8 Comments(s)

Copy linkTweet thisAlerts:
@fredmvDec 12.2003 — Welcome to the forums.<a href="http://www.google.com/" onclick="target='_blank';style.display='none';">Google</a>
Copy linkTweet thisAlerts:
@conundrumauthorDec 12.2003 — Thanks. Is there a way to make it NEVER show up again? I'm trying to create a web site for my family to choose names for christmas. If a name is chosen (clicked on) I don't want it to be available to the other people.
Copy linkTweet thisAlerts:
@fredmvDec 13.2003 — You'll most likely have to use server-side cookies for that.
Copy linkTweet thisAlerts:
@pyroDec 13.2003 — Actually, it will not use cookies at all. A cookie would only be useful if one browser would be used to access it. I'm assuming he wants this to be able to be accessed by multiple users. What you will want to do is write which names have been chosen to a file, and then just output the names that have not been chosen.
Copy linkTweet thisAlerts:
@fredmvDec 13.2003 — Very true Ryan, I should've thought of that. That's what I get for having a client-side mindset. Thanks for the correction. ?
Copy linkTweet thisAlerts:
@pyroDec 13.2003 — No problem... ?
Copy linkTweet thisAlerts:
@conundrumauthorDec 13.2003 — I'm in WAY over my head but thanks anyhow! And it's She. ?
Copy linkTweet thisAlerts:
@pyroDec 13.2003 — Sorry 'bout that... ?

If your server supports PHP, fire a post off in our PHP section, and I or someone else will get around to helping you out. ?
×

Success!

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