In SVG files, it may be difficult to use JavaScript code to open a new window.
Method 1
<A xlink: href = ''target = 'new'>
<Text id = 'Ali, I. 'X = '000000' y = '000000' fill = 'black' font-family = 'verdana 'font-size = '10' onclick = 'textonclick (EVT) '> Ali, I. </text>
</A>
This target = 'new' indicates that a new window is opened when the link is clicked, but it is invalid in IE and Firefox.
Method 2
Implemented using JavaScript scripts,
Function createwindow (EVT)
{
Parent.open('pop.html ', 'displaywindow', 'toolbar = No, width = 350, Height = 400, directories = No, menubar = No, scrollbars = Yes, location = No, status = No, scrollbar = Yes, resize = No, menubar = no ')
}
<Text id = 'more' x = '000000' y = '000000' fill = 'black' font-family = 'verdana 'font-size = '10' onclick = 'createwindow (EVT) '> more </text>
This method is valid in Firefox and always prompts permission denied in IE, with no permission.
The following is a post found on Google to discuss this issue,
Http://topic.csdn.net/u/20070208/09/a2ad9dff-9208-4d2a-be70-43a79de7988c.html
Http://wenda.tianya.cn/wenda/thread? Tid = 5bf84d77aca68c29
Http://tech.goodspeed.com.cn/50643.aspx
Http://www.nabble.com/window.open-from-SVG-in-IE-ASV-td23763539.html
There are various methods, such as parent. open (),
Top. open (). It is invalid if you try it.
Alas, it's really troublesome.
It always takes more than n time to make things bigger than sesame.