R
Raoul.Kamadjeu
I'm trying to open a new window from an SVG document (a map). A new
window will popup when the user clicks on an SVG polygon.
The SVG document is generated by a php function
The JavaScript function resides on an external file
function open_me(url) {
window.open('url');
}
I use this piece of code to open the new window
<a href="javascriptvoid)" onclick="open_me('http://www.google.com');"
target="_blank">
This doesn't work. I got the error message "window.open is not a
function".
I tested the same routine with window.alert and it works fine.
What is wrong here?. Why window.open is not recongnized as a function
in this case and window.alert is?
window will popup when the user clicks on an SVG polygon.
The SVG document is generated by a php function
The JavaScript function resides on an external file
function open_me(url) {
window.open('url');
}
I use this piece of code to open the new window
<a href="javascriptvoid)" onclick="open_me('http://www.google.com');"
target="_blank">
This doesn't work. I got the error message "window.open is not a
function".
I tested the same routine with window.alert and it works fine.
What is wrong here?. Why window.open is not recongnized as a function
in this case and window.alert is?