Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (e) => {
- var target = e.target;
- var url = target.getAttribute('href') + '?' + '<serialized data here>';
- target.setAttribute('target', '_blank');
- target.setAttribute('href', url);
- // Let the event take care of the rest :D
- }
Add Comment
Please, Sign In to add comment