Support » Plugins » Violence/Abuse Website

  • jfdesignco2


    I have a client looking for a website for a domestic violence/abuse organization. one crucial feature is the ability to hit ESC and it exits the site and goes to google… example is this:

    Are there any plugins that do this or do you know of any code that would make this happen? If there is code – where does it go in order to apply to the complete site?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The code is embedded in the page. If you search for the word escape it’s pretty easy to find.

    The easiest way to embed the code would be to use the text/html widget to embed it in a footer that is on every page.

    Thread Starter jfdesignco2


    so this is the code i had found:
    <script>function getAway() {“;, “_newtab”);window.location.replace(‘;); } (function($) { $(‘.escape’).on(‘click’,function() { getAway();return false; }); $(document).keyup(function(e) { if (e.keyCode == 27) { getAway(); } }); })(jQuery);</script>

    which i put in the header of the page and it works but the one browser (on my test site) allows you to go back to my site — whereas on the example neither browser allow you to go back… what am i missing?

    PS THANK YOU!!!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Violence/Abuse Website’ is closed to new replies.