简体   繁体   中英

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.

So far my research hasn't turned up anything, is retrieving a user's homepage possible with 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. That's private, and browsers correctly respect that.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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