MyBB Community Forums

Full Version: Insert Text From Popup
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a button in the "newthread" template that opens a popup window. The popup window contains a few buttons. When i click a button on the popup window how can i insert text "hello" into the newthread text area and close the popup window after the button is pressed ?

This is what im using for the popup window :
<a href="#" onClick="MyWindow=window.open('dl.html','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=650,height=290');return false;">Image Codes</a>