php - JavaScript: To the other page -


I created this PHP chatbox that supports some code.

I have these 'images', if you click on creating special code within the text file eg:

   your text & lt; / a & gt;');" & Gt; & Lt; Img src = "img.gif" /> & Lt; / A & gt; & Lt; / Body & gt;  

which will put HTML link code in the text file, so that the user can edit it easily.

Now I have this popup, which should be done as before but because it is in a new window, it needs to talk to the second page (chatbox.php).

How can I do this?

document global objects (global from window) > Window (e.g., document === window.document ). If the code on that page opens a new window, there is a property named opener inside the new window, you can use it to reference the window whose new window opened ( openers references to the opening window ), therefore:

  opener.document.writeform.bericht.value + = code;  

Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -