Is their way of posting content in an iframe without using src

I created my own WYSIWYG editor to edit the XML file. For this I used <iframe>.
I parsed the XML file and the entire contents of the variable. How to post this content in <iframe>? I tried this code but it does not work:

<iframe id="textbox"  style="width:300px; height:150px" >
     <?php echo $content ?>
</iframe>

Do they have any javascript code for this. Thanks in advance.

+3
source share
1 answer

. W3C, <iframe> , .
: . <div>.

+4

Source: https://habr.com/ru/post/1773817/


All Articles