python win10 ie禁止跳转edge

python 复制代码
import win32com.client

# 创建IE浏览器对象
ie = win32com.client.Dispatch("InternetExplorer.Application")

# 禁止IE跳转到Edge
ie.Navigate("about:blank")  # 导航到空白页面
ie.Visible = True  # 设置IE窗口可见
ie.AddressBar = True  # 显示地址栏
ie.MenuBar = True  # 显示菜单栏
ie.StatusBar = False  # 隐藏状态栏
ie.ToolBar = True  # 显示工具栏
ie.Silent = True  # 静默模式,禁止弹出对话框
相关推荐
snow@li6 小时前
数据库:市场中都有哪些数据库 / 优缺点 使用情况
数据库
QC班长6 小时前
Maven公司私库配置踩坑点
java·服务器·maven·intellij-idea
NoSi EFUL6 小时前
MySQL中ON DUPLICATE KEY UPDATE的介绍与使用、批量更新、存在即更新不存在则插入
android·数据库·mysql
河阿里6 小时前
SQL数据库:五大范式(NF)
数据库·sql·oracle
l1t7 小时前
DeepSeek总结的PostgreSQL 19查询提示功能
数据库·postgresql
chenxu98b9 小时前
MySQL如何执行.sql 文件:详细教学指南
数据库·mysql
刘晨鑫19 小时前
MongoDB数据库应用
数据库·mongodb
梦想的颜色9 小时前
mongoTemplate + Java 增删改查基础介绍
数据结构·数据库·mysql
mfxcyh10 小时前
使用MobaXterm配置nginx
java·服务器·nginx
小小小米粒10 小时前
redis命令集合
数据库·redis·缓存