[PATCH] window.open destinations _self and replace
Daniel Molkentin
molkentin at kde.org
Tue Oct 7 00:57:42 CEST 2003
Moin!
This patch adds the destinations _self and replace to window.open according to
[1]. Apparently some reallife sites (Well, intranet sites) use it. It merely
loads the url into the current window (similar to document.load()?). The
bugreporter was able to verify a similar patch works (In first iteration I
didn't make a difference between _self and replace, but that seems necessary.
Quoting the docs from "replace": "... the new document is to replace the
current entry in the history list."
In khtml, the following other target destinations remain unimplemented:
_search: "Available in Internet Explorer 5 and later. When opening a window,
the sUrl is opened in the browser's search pane."
_media: "Available in Internet Explorer 6 and later. The sUrl is loaded in the
Media Bar."
Both could probably supported the one or other way in Konq. (do we have means
to access the sidebar media player? For the search we could fire a search
using the peferred search provider in a new window).
I didn't find comparable stuff in WebCore 85. Does Safari handle those?
Cheers,
Daniel
[1] http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/
open_1.asp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: window_open.diff
Type: text/x-diff
Size: 1013 bytes
Desc: not available
Url : http://mail.kde.org/mailman/private/khtml-devel/attachments/20031006/68b9f4b7/window_open.bin
More information about the Khtml-devel
mailing list