I'm a beginner at HTML and JavaScript. And trying to encode a HTML file to Base64 code and then put that encoded string into <iframe src=" ENCODED STRING HERE"
from another HTML file.
What I'm trying to do here is put encoded string into popup iframe
like below capture to make it visible,
var i_frame_98c3be4abbe943db99555415352b65f5 = $('<iframe src="ENCODED STRING FROM HTML FILE" width="500" style="border:none !important;" height="300"></iframe>')[0];
However, I don't know how to.
I know there is encode/decode website base64encode.org but I have to do it by hand. I want to make it be encoded directly and put the code in the iframe src
when I open up the file.
Is there any ideas or functionality in html to encode directly?
p.s. I can edit to upload html code if you want to see.