It's reloading the page. I've never used "button", so I'm not sure if it tries to behave as a submit button. Do you get the same effect if you use input type='button'?
It is also throwing an error when you click (before it refreshes).
And now it seemed to have worked, and every time I visit, the box doesn't show, so I can't look at it anymore :-P
"Dream as if you'll live forever, live as if you'll die today." --James Dean
deanswe
Member
18 Points
46 Posts
Cookie link not closing
Dec 21, 2012 11:06 AM|LINK
Hi
We have put a cookie notice on a dev site http://109.108.155.82/
The link to the info page is fine but the close function is not working. The code relating to this is
// FUNCTION used when CLOSE button is Clicked or AutoClick timeout is reached
function tesco_cookie_accept() {
clearTimeout(tesco_cookie_timer);
document.cookie = 'tesco_cookie_accepted=1; path=/; expires=Mon, 18 Jan 2038 01:23:45 GMT';
tesco_cookie_widget.parentNode.removeChild(tesco_cookie_widget);
}
Any idea why its not closing?
AceCorban
Star
12318 Points
2269 Posts
Re: Cookie link not closing
Dec 21, 2012 04:16 PM|LINK
It's reloading the page. I've never used "button", so I'm not sure if it tries to behave as a submit button. Do you get the same effect if you use input type='button'?
It is also throwing an error when you click (before it refreshes).
And now it seemed to have worked, and every time I visit, the box doesn't show, so I can't look at it anymore :-P