General discussion

Locked

IE History.

By pogrebnoy ·
How can i interact(i need clear or fiter) with IE5 history. I meen back\forward history, not cache, not address history.
I need interact from html (Javascript, VBscript, ActiveX,... any available from html).
Any proposition?
Thanks in advance.

This conversation is currently closed to new comments.

7 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

IE History.

by kirya In reply to IE History.

I think it's not possible As it's written in MSDN:
"For security reasons, the history object does not expose the actual URLs in the browser history."
So the only thing that you are allowed to do is navigating through the history.

Collapse -

IE History.

by pogrebnoy In reply to IE History.

The question was auto-closed by TechRepublic

Collapse -

IE History.

by billf In reply to IE History.

Microsoft strictly limits what you can do with IE history. Although you cannot see URLs, you can load pages previously visited by using the forward(), go() and back() methods. A loaded document can see its own URL, but not that of other documents. Try this code:
<html>
<head><title>Show the history</title></head>
<body>
<dl><dt><b>Show the history:</b><hr>
<script language="Javascript"><!--
var linetemp = '<dd>Go to <a href="javascript:window.history.go(#num#)">Page #num#.</a> (calls window.history.go(#num#))';
var numwork = 0;

document.write('<dd>the length is ' + window.history.length);
for (i=1;i<window.history.length;i++) {
numwork = 0 - i;
document.write(linetemp.replace(/\#num\#/g, numwork));
}

// --></script>
<hr>
<dd>Go <a href="javascript:window.history.forward()">Forward.</a>
<dd>Go <a href="javascript:window.history.back()">Back.</a>
</dl>
</body>
</html>

It's not perfect, there's little space for error handling. Check the wrapping: I'mnot sure how this wi

Collapse -

IE History.

by pogrebnoy In reply to IE History.

The question was auto-closed by TechRepublic

Collapse -

IE History.

by pVp In reply to IE History.

You have to go back to IE 3 to do this!

It's a massive security/privacy issue, and everything was purposedly obscured starting with IE 4.

Collapse -

IE History.

by pogrebnoy In reply to IE History.

The question was auto-closed by TechRepublic

Collapse -

IE History.

by pogrebnoy In reply to IE History.

This question was auto closed due to inactivity

Back to Web Development Forum
7 total posts (Page 1 of 1)  

Related Discussions

Related Forums