I am new to JS. I have asp.net mvc application, in which cookies “privacy statement” is already implemented.
Screenshot example.
I believe it’s implemented Like below.
<script src=“https://banner.example.com/JavaScript/ compliance.main.js” type=“text/JavaScript “></script>
<link href=“https://banner.example.com/css/banner.css”rel = “stylesheet” type=“text/css”/>
<Dev Id = “Aucookies-banner”>
<Dev>
<span Id = “aucookies-bannertext”></span>
<a Id = “aucookies-privacylink”>
<span Id = “aucookies-privacytext”></span>
</a>
</Dev>
</Dev>
<script type=“text/JavaScript “>
$(document).ready(function() {
aucookiesimplementationrun(“en-us”, “website.com”);
$(function (){
$(‘#region’).on(‘change’,function (){
Var url = $(this).val();
If(url){
window.location = url; // redirect
}
Return false;
}); });
I would like to open this cookies url (that is “privacy statement “ ) in a new tab in the same browser. How can I do this? Thanks.