webContents - contents.setWindowOpenHandler(handler)

概述

设置新窗口打开处理器;返回 { action: 'deny' } 可取消新窗口的创建,返回 allow 则允许并可向新窗口传递参数。

基本信息

属性
模块 webContents
类型 Method
鸿蒙支持 支持