Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

When was a link last clicked? 1

Status
Not open for further replies.

tinapa

Technical User
Nov 12, 2008
81
GB
hi guys!, do you know of any script that let's you write on the page when a link was last clicked? i just want to do this using javascript or vbscript.

(i can do this using database, asp.net etc but don't want to go that way, as it seems over the top)

any ideas is appreciated guys!
 
Hi

Which link ? The one which led the visitor to the given page ? Why is not enough to just output the date & time of the document rendering ?
Code:
document.writeln(new Date())
By the way, in most cases such practices are considered useless or even stupid. And in most cases I agree.

Feherke.
 
well, it's not useless or stupid in all cases. it's case-to-case basis.

this is the case:

page1 with a link goes to page 2 with stored procedure that does something according to our business-specific process.

when the user is in page 1, i want the user to be notified/warned when he/she last clicked this link.

if this is not possible or looks "stupid" using javascript i will just have to use database.
 
Hi

Got it. The link is on page 1, the date & time has to be display on page 1, but the link refers to page 2.

Are page 1 and page 2 displayed in the same time ? For example in different windows or frames ?

Feherke.
 
thnx johnwm, that looks promising!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top