简体   繁体   English

是否可以使用JavaScript从浏览器中检索用户的主页URL?

[英]Is it possible to retrieve a user's homepage URL from the browser with JavaScript?

Just so it's clear: I don't want to reset their homepage. 就这么清楚:我不想重置他们的主页。 I just want to pull the URL of their homepage and load content from it as part of an application demo. 我只想提取其主页的URL并从中加载内容作为应用程序演示的一部分。

So far my research hasn't turned up anything, is retrieving a user's homepage possible with JavaScript? 到目前为止,我的研究还没有发现任何东西,是否可以通过JavaScript检索用户的主页?

No, that would be a significant privacy violation. 不,这将是一个重大的隐私侵犯。 If browsers allowed you to access this data, you could potentially detect the user's e-mail provider, bank of choice, or company intranet if they had it set as their home page. 如果浏览器允许您访问此数据,则可能会检测到用户的电子邮件提供商,选择银行或公司内部网,如果他们将其设置为主页。

Not that I know of. 从来没听说过。

That'd be a pretty major security hole if you could. 如果可以的话,那将是一个非常重要的安全漏洞。

No. That would be a horrendous security problem. 不,那将是一个可怕的安全问题。 I don't want AN Other web developer finding out arbitrary browser settings. 我不希望其他Web开发人员发现任意浏览器设置。 That's private, and browsers correctly respect that. 这是私有的,浏览器正确地尊重这一点。

如果它确实那么浏览器制造商需要与它的开发人员说一句话。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM