如何在默认浏览器中打开空白页面? [英] How to open an empty page in default browser?

查看:378
本文介绍了如何在默认浏览器中打开空白页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在默认浏览器中打开一个新标签并选择它,以便用户写下他想要的页面。



我尝试了什么:



I want to open a new tab in the default browser and select it so the user writes his desired page.

What I have tried:

System.Diagnostics.Process.Start("http://About:Blank");

推荐答案

试试这个:



Try this:

System.Diagnostics.Process.Start("IExplore.exe","about:Blank");


要在用户的默认浏览器中打开一个空白窗口,而不是特定的浏览器,这似乎有效:

To open a blank window in the user's default browser, rather than a specific browser, this seems to work:
System.Diagnostics.Process.Start("http:");



注意:对我来说,这会打开一个新窗口,而不是现有浏览器窗口中的新选项卡。


NB: For me, this opens in a new window, not a new tab in the existing browser window.


我看到一个空白页面称为bla在Windows 10上的Edge中的nk.htm也是。
I have seen a blank page referred to as blank.htm in Edge on Windows 10 also.


这篇关于如何在默认浏览器中打开空白页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆