diff --git a/api/@internal/component/ets/web.d.ts b/api/@internal/component/ets/web.d.ts index eba8d735d8b74d80ed9e5768f720a8041bde501f..8d7f348399d9f1aefc3c363a17d8caa4b5d266ca 100755 --- a/api/@internal/component/ets/web.d.ts +++ b/api/@internal/component/ets/web.d.ts @@ -735,7 +735,7 @@ declare class WebAttribute extends CommonMethod { * @param callback The triggered function when the web page wants to confirm navigation from JavaScript onbeforeunload. * @since 8 */ - onBeforeUnload(callback: (event?: { message: string; result: JsResult }) => boolean): WebAttribute; + onBeforeUnload(callback: (event?: { url: string; message: string; result: JsResult }) => boolean): WebAttribute; /** * Triggered when the web page wants to display a JavaScript confirm() dialog.