GDPR Cookie Law JavaScript GDPR Consent Plugin Example

GDPR Cookie Law – JavaScript GDPR Cookie Consent Plugin example – Position: top-left

For the best user experience on the demo site, the cookies are automatically deleted. This way you can always see the notification toolbar.
Position: top-left
Example code
<link rel="stylesheet" href="">
<script src=""></script>
document.addEventListener('DOMContentLoaded', function {
    var gdprCookieLaw = new GDPRCookieLaw({
        moreLinkHref: '',
        position: 'top-left',
        width: '767px',
        margin: '10px'
Related options
Peoprty Possible Values Default Value Description
moreLinkHref URL e.g. '' null The href attribute of the 'More information' link.
position 'bottom', 'bottom-left', 'bottom-center', 'bottom-right', 'top', 'top-left', 'top-center', 'top-right' 'bottom' The position of the pop-up.