我们如何禁用浏览器的地址栏,以便没有人可以从地址栏中选择网址 [英] How can we disable the address bar of browser so that no one can select the url from the address bar

查看:167
本文介绍了我们如何禁用浏览器的地址栏,以便没有人可以从地址栏中选择网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何禁用浏览器的地址栏,以便没有人可以从地址栏中选择网址

How can we disable the address bar of browser so that no one can select the url from the address bar

推荐答案

我认为你不能隐藏用户当前窗口上的地址栏,但您可以创建一个隐藏地址栏的弹出窗口。



I don''t think you can hide the address bar on a user''s current window but you can create a pop up that has the address bar hidden.

var popup = window.open("http://someurl", "myPopup", ''toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=120,height=120'')





或者检查这些链接 -



使用JavaScript加载页面加载地址栏
使用JavaScript隐藏页面加载上的地址栏


你可以写server.transfer(导航链接或页面名称)它不会让addre在网址栏中显示ss或页面名称。
you can write server.transfer("navigation link or page name")it ll not let the address or page name show in url bar.


您将无法禁用地址栏。但您可以在弹出窗口中打开页面,并指明窗口是否应显示工具栏,状态栏,地址栏等。

检查 MSDN:Open Method(Windows) [ ^ ]。





--Amit
You''ll not be able to disable the address bar. But you can open your page in a popup, and specifty whether the window should display the toolbars, statusbar, addressbar etc.
Check MSDN : Open Method(Windows)[^].


--Amit


这篇关于我们如何禁用浏览器的地址栏,以便没有人可以从地址栏中选择网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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