assign method
[This documentation is preliminary and is subject to change.]
Loads a new HTML document.
Syntax
object.assign(bstr)Standards information
There are no standards that apply here.
Parameters
- bstr [in]
-
Type: BSTR
String that specifies the URL of the document to load.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Build date: 2/14/2012
- 10/30/2008
- george_5154
- 11/9/2008
- Thomas Lee
I have the following code in my root page:
window.location.assign(newpage)
This obviously loads a new page, and it seems like there is nothing to worry about, however, if I hit the “Back” button, IE leads me backwards to the previous page and then immediately forward to the new page, in the server’s log I see IE requested the new page for a seccond time. That behavior is not normal, so it must be a bug. If I do the same on Google Chrome, Safari or FireFox, they all behave properly, that is, when I hit “Back” I only go backwards, and when I hit “Forth” I only go forward.
- 10/30/2008
- george_5154
- 10/30/2008
- george_5154