跨浏览器脚本,使我的网站为首页 [英] Cross Browser Script to make my website as Home Page

查看:82
本文介绍了跨浏览器脚本,使我的网站为首页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网站,我想要求用户将我的网站设为主页。如果他们点击是,我想运行一个脚本,使我的网站成为用户浏览器的主页。有一个类似的线程在这里和一个解决方案这里。但是,我的后一个链接中的解决方案仅适用于IE。我需要一个跨浏览器脚本。



任何人都可以帮助我解决这个问题。

作为一种安全措施,可以通过大多数浏览器中的代码来完成此操作。如果是这样的话,任何访问过的网站都可以在未经您同意的情况下自动成为您的主页。

事实上,旧版本的IE让你做到这一点,如果你需要这种行为,你需要编写一个一步一步的指南,告诉人们点击什么工具栏,以及在哪里设置他们的主页浏览器设置。


I have a website and I would want to ask users to make my website as Home Page. If they click Yes, I would like to run a script that should make my website as the home page of the user's browser. Have got a Similar Thread here and a solution here. However, the solution present in my latter link works only in IE. I need a cross browser script for this.

Can anyone help me on this.

解决方案

It is not possible to do this via code in most browsers as a security measure. If it was, any website you visit could automatically make itself your homepage without your agreement.

The fact old versions of IE let you do this is very much the exception rather than the rule.

If you require this behaviour, you would need to write a step by step guide telling people what toolbar to click on, and where to set their homepage in their browser settings.

这篇关于跨浏览器脚本,使我的网站为首页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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