I can not understand the reason. Here is the code, the most elementary. When outputting (both through the server and without it), neither the text “Something is already written” is seen, nor what I want to add.
<script type="text/javascript"> $(document).ready(function(){ $("#addcols" ).click(function(){ $("iframe#frm").contents().append("ffff"); }); }); </script> </head> <body> <input type="submit" id="addcols" /> <iframe id="frm"> Что-то уже написано </iframe> </body> </html>