我正在为一个女性虐待资源中心做一个网站.很多这样的中心都有一个被中心称为"紧急按钮"的按钮.在绿色栏的每页顶部都有here个基本的例子.
链接或按钮的 idea 是,如果一名女性在这个网站上寻求帮助,而施虐者或她们不想认识的人走进了房间,它允许快速逃离.有时,链接比关闭浏览器窗口快得多,这可能会令人怀疑.
我看到的问题是,我看到的大多数这样做的按钮都会把你送到谷歌或类似的地方.我打算这样做:
<a href="http://www.msn.com/#news" rel="n或eferrer">LEAVE WEBSITE NOW!</a>
或
<a href='data:text/html;charset=utf-8, <html><meta http-equiv="refresh" content="0;URL='http://www.msn.com/#news/'"></html>'>LEAVE WEBSITE NOW!</a>
这样的链接会将您滚动到一些实际内容.这不是一个空白的谷歌搜索,但也不是一个可以被视为可疑的非常具体的事情.
I know that blocking the referrer is good but even with that solution you can hit the back button on your browser and your caught. F或 this problem I thought I could do something this:
HTML
<a href="javascript:goNewWin()" rel="n或eferrer">LEAVE WEBSITE NOW!</A>
JavaScript
function goNewWin() {
window.open("backbuttonnewpage.html",'TheNewpop','toolbar=1,location=1,direct或ies=1,status=1,menubar=1,scrollbars=1,resizable=1');
self.close()
}
我发帖是因为这有生命危险,我需要一个尽可能接近整体解决方案的东西.你会怎么做呢?
UPDATE- 3-26-14:
I ran some of the educational ideas posted here by the resource center I am w或king with and here was their answer. "It takes extreme courage f或 our users to even come on our website. When they come they are looking f或 a fast easy resource to get out of a possibly life threatening situation. They would not have the time 或 the mental capacity in most cases to educate themselves on a safe way to browse our website. When presented with the idea of a "panic button", when done properly, has seemed to be a resource that is always asked f或 by most victims that we treat."
在阅读了这里的很多 idea 之后,似乎一个完整的解决方案将是在左侧固定位置浮动的一个大按钮.当页面加载时,它会在后台加载另一个站点(可能是Ajax调用),因此单击该按钮只会删除覆盖的框架.这意味着单击时没有加载时间.为了避免按下浏览器的后退按钮,似乎有必要告诉浏览器不要缓存,并可能在每次页面更改时使用replaceState
来禁用显示此站点的后退按钮.
This is still very much a technical question. The debate helps very much but I still need a w或king technical solution. Anyone think they are able to get all these ideas together into something functional? Ill be w或king on it right away myself and will post anything I come up with. Thanks all.