English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have a hyperlink in the index homepage. I want to set it to linking to the hyperlink once only. I mean the visitor can click the hyperlink once only and the linked web page will only be opened once. If the visitor wants to click the same hyperlink again, the index page will not open the hyperlink page unless the visitor refresh the index page or reenter the web address in the IE address field. Is there a HTML code for this?

2007-01-25 08:11:24 · 3 answers · asked by Sanny 1 in Computers & Internet Programming & Design

3 answers

You'll have to do some server-side scripting to do this. You could give the visitor a cookie, or check the REMOTE_ADDR environment variable. But, why? Disabling your links is simply annoying.

2007-01-25 09:03:05 · answer #1 · answered by injanier 7 · 0 1

Place a link that executes a javascript function..... Then you can execute a javascript that Pops a new window then you execute a document.linkname.disabled = "true"

When the user comes back to the parent page....the link no longer works uless they refresh.

2007-01-25 13:26:53 · answer #2 · answered by Jeffrey F 6 · 0 0

No.
You would have do do some background coding.

2007-01-25 08:22:52 · answer #3 · answered by Metaspy 3 · 1 0

fedest.com, questions and answers