How can I execute the link I have stored in var Link
? I have tried the eval()
but that doesn't seem to do much.
I have stored the link as a string just like shown.
var link = "someURLlink.com";
This is placed inside a function so when I call the function, I want this link to be executed and then I am going to parse the result.
Edited: This will make a call to an API for authorization with the client_id hard coded into the URL. After I receive the secret code from the landing page, I am going to redirect back to my original HTML
document.