我想在将鼠标悬停在网址栏上时禁用光标,以避免编辑地址栏中的网址文字。 是否可以使用jQuery或JS。
答案 0 :(得分:2)
我不能在常规浏览器窗口中执行此操作。但您可以使用window.open
<button onclick="openSecuredWindow()">Open Secured Window</button>
function openSecuredWindow() {
window.open("https://google.com", "", "width=" + window.innerWidth +",height=" + window.innerHeight);
}
https://codepen.io/moshfeu/pen/OZNXZY
请注意,用户始终可以在常规窗口中复制/粘贴网址。