PDA

View Full Version : copyhistory


garslouche
08-16-2002, 03:02 PM
hi,
I'm French, so excuse me if my english isn't good enough...;)

Here is my problem:
I open a new window thanks to this function
window.open("new_window.html","new_window","copyhistory=yes,width=400,height=400")

Until here : no problem. Yet even though a new window is opened, the history isn't copied at all.

Does anybody know why, or how to truly copy the history ?


Thank you

beetle
08-16-2002, 03:23 PM
window.open("new_window.html","new_window","width=400,height=400",false)

garslouche
08-16-2002, 05:22 PM
unfortunately it doesn't work either...the new window doesn't have the same history as the opener

brothercake
08-16-2002, 06:46 PM
As far as I know you cannot transfer the history from one window to another, because windows are seperate sessions. I've never heard of "copyhistory" as a value name; where did you get it from?

beetle
08-16-2002, 06:57 PM
I think he made it up. :D

Now, I do know that when you invoke a new windows via Ctrl+N the history stays intact. However, I don't know of ANY way to duplicate this action with javascript.

Spookster
08-16-2002, 08:52 PM
copyhistory is a valid attribute however I don't recall if it was propietary to NS or IE and which versions of each actually support it.

beetle
08-16-2002, 09:02 PM
Well, it's not on MSDN (http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/open_0.asp) so it must have been a NS thing

Spookster
08-16-2002, 09:14 PM
Speakin of NS, has anyone else noticed that Netscapes main site and developer site has been down? Did they forget to pay their internet bill again?

scroots
08-17-2002, 12:54 PM
copy histrory me thinks is that when the pages loads if the value of copy history is:
copyhistory=no

the page is not shown in the history section. the history section shows the recent sites visited.

you see the copyhistory=no atricute on password scripts.

scroots