Embedding SVG edit as a inline editor
问题 How can this be accomplished in a HTML page: Click on the SVG image will open SVG editor in another window. On closing the window (after Y/N prompt) the svg code in the opener window will be updated. 回答1: Well I found a solution: having opened the editor with hWinEdit=window.open('svg-edit-2.7/svg-editor.html','SVG-edit'); I then add the onbeforeunload event: hWinEdit.onbeforeunload=function(){hWinEdit.opener.svgClose();}; where svgClose is my function getting the SVG HTML string: s=hWinEdit