I would like to use this code
window.parent.document.getElementById(\'message\').value += \"\\r\\n\\r\\n[img]\"+response+\"[/img]\";
It works
You can't. This is called the same origin policy, and prevents javascript accessing content across domains.