When I try to create an iframe dynamically with parameters in the URL, javascript encodes them as & instead of leaving them.
Here is my code:
let myIframe = document.getElementById("myiframe");
let src = 'https://mywebsite.com/?first_name='+firstName+'&last_name='+lastName+'&email='+email;
myIframe.src =src;
Via Active questions tagged javascript - Stack Overflow https://ift.tt/2FdjaAW
Comments
Post a Comment