Ash
05-30-2003, 03:44 AM
Hi,
I'm trying to find a way to use history.go to see what sites our visitors look at before they come to ours, but not having any luck, cos document.write(history.go(-1)) has the same effect as history.go(-1)
I found the following function
String getHistory () {
StringBuffer history = new StringBuffer();
for (int i = 0; i < log.size(); i++) {
LogEntry entry = (LogEntry) log.elementAt(i);
history.append (entry.toString() + "\n");
}
return history.toString();
}
but can't get it working, so I thought I'd seek professional help ;)
Any help most appreciated,
Ash
I'm trying to find a way to use history.go to see what sites our visitors look at before they come to ours, but not having any luck, cos document.write(history.go(-1)) has the same effect as history.go(-1)
I found the following function
String getHistory () {
StringBuffer history = new StringBuffer();
for (int i = 0; i < log.size(); i++) {
LogEntry entry = (LogEntry) log.elementAt(i);
history.append (entry.toString() + "\n");
}
return history.toString();
}
but can't get it working, so I thought I'd seek professional help ;)
Any help most appreciated,
Ash