close window
Posted: Sun May 19, 2019 5:02 pm
A simple enough question but I doubt there is a simple answer
I there a way to close a window that has not been opened by javascript in certain browsers.
I have a link coming from another site that opens a page with my cookie policy on it and I have put a "Close window" link but it doesn't close. I know that certain browsers do not allow a window to close unless its been opened by JavaScript and thought there might be a quick fix. is it possible to put some extra code into to make it open in the same window as the link.
I there a way to close a window that has not been opened by javascript in certain browsers.
I have a link coming from another site that opens a page with my cookie policy on it and I have put a "Close window" link but it doesn't close. I know that certain browsers do not allow a window to close unless its been opened by JavaScript and thought there might be a quick fix. is it possible to put some extra code into
Code: Select all
<link rel="stylesheet" type="text/css" href="//wpcc.io/lib/1.0.2/cookieconsent.min.css"/><script src="//wpcc.io/lib/1.0.2/cookieconsent.min.js"></script><script>window.addEventListener("load", function(){window.wpcc.init({"border":"normal","corners":"large","colors":{"popup":{"background":"#cff5ff","text":"#000000","border":"#5e99c2"},"button":{"background":"#5e99c2","text":"#ffffff"}},"content":{"message":"We use some unobtrusive cookies to ensure you get the best experience from the website.","link":"Our Cookie Policy","href":"https://www.summitcarhire.com/cookies.html","button":"OK Got It"},"position":"top","padding":"none","fontsize":"tiny"})});</script>