Not Monitored
Tag not monitored by Microsoft.
40,317 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
以下是用于HTML文件的自动跳转lnprivate窗口代码,无法正常跳转到lnprivate窗口页面
<!DOCTYPE html>
<html>
<head>
<title>跳转至 lnPrivate 私密窗口</title>
</head>
<body>
<button onclick="openInPrivate()">在 lnPrivate 窗口打开</button>
<script type="text/javascript">
function openInPrivate() {
var url = "microsoft-edge:https://accounts.google.com -inprivate";
var isSupported = window.msLaunchUri && window.msLaunchUri(url, null, function(result) {
if (!result) {
console.error("无法打开 lnPrivate 窗口");
// 如果无法打开 lnPrivate 窗口,可以尝试在普通窗口中打开
window.location.href = "https://accounts.google.com";
}
});
if (!isSupported) {
console.error("lnPrivate 功能不受支持");
// 如果不支持 lnPrivate,直接在普通窗口中打开链接
window.location.href = "https://accounts.google.com";
}
``` }
</script>
</body>
</html>