共用方式為


onhashchange property

Sets or retrieves a pointer to the event handler function associated with the HTMLWindowEvents3::onhashchange event.

 

Syntax

HRESULT value = object.put_onhashchange(VARIANT v);HRESULT value = object.get_onhashchange(VARIANT* p);

Property values

Type: VARIANT

the IDispatch interface of an object with a default method that is invoked when the event occurs.

Remarks

The IHTMLBodyElement3::onhashchange property was introduced in Windows Internet Explorer 8.

See also

Introducing AJAX Navigations