copy to document
copy to document
hi! I'm quite interesting in the process code about the "copy to document". I know it maybe the secret.Anyway,just tell me the ideas
22 Mar 13, 1:57PM
Actually this is fairly straight forwards. When you open a popup window there is a opener property that you can use from within the popup to control content on the parent.
This is essentially what we're doing to open the window.
editorwindow=window.open('','LaTexEditor','width=700,height=450,status=1,scrollbars=yes,resizable=1'); if (!editorwindow.opener) editorwindow.opener = self; editorwindow.document.open(); editorwindow.document.write('<!DOCTYPE html><html><script src="'+url+'" type="text/javascript"></script><body></body></html>'); editorwindow.document.close();Then you the opener property to adjust the parent.