javascript - Trying to insert in-line HTML to iframe srcdoc tag -
i have array filled html contents want, way map each of contents proper iframe.
here chunk of code using
function replaceframes(docelement) { array.prototype.foreach.call(docelement.queryselectorall("iframe, frame"), function (node) { var name = node.getattribute("name"); var blah = singlefile.test[name]; node.setattribute("srcdoc",blah); }); }
the docelement parameter standard dom element
i use jquery, feel wont able modify want, since dont have access document, specific element/node.
the problem is, in output document have ">'; , <'; instead of tags (ignore quotes there, make pop up.)
Comments
Post a Comment