I'm sorry, I don't know what you mean. I've shown you the code that doesn't work in IE7. IE7 is not replacing the page when I set the URL. For reference, here is the C++ code from the ActiveX control that doesn't work:
IHTMLDocument2 *pDisplayDocument;
//pDisplayDocument is initialized from...
Thanks for the reply. This is, of course, a simplified example. What I want to happen is the whole page to be replaced when the "javascript:" URL is set. When the URL is set, I expect the page rendering to bail out and redirect to the specified URL.
The real reason I want to know how to do this...
I'm having trouble with some code that behaves differently in Internet Explorer 6 and 7.
<html>
<body>
<p>Test</p>
<script language=javascript>
window.location.replace("javascript:document.write(\"<p>Hello, world!</p>\")");
document.write(window.location);
</script>
</body>
</html>...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.