This topic has not yet been rated - Rate this topic

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

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Community content bug?
Previously I could paste text directly from MS Word, but when I try to do so now, I get an error message and my post is not saved properly (se below). Why?
Another IE7 bug?

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.

Another IE7 bug?