Question
problem whe calling url from flash with JS
Hey,
I am using this code to call new window from flash:
button1.onPress = function(){
getURL("javascript:window.open('files/pictures/gallery.html','Picture Gallery','width=650, height=550, top='+((screen.height/2)-(500))+',left='+((screen.width/2)-(600))+',toolbar=no, scrollbars=no, resizable=no, menubar=no, status=no, directories=no, location=no'); void(0);");
};
When I play it on Firefox it's ok, but in IE 7 it doesn't work! It shows that is "error on page".
Can somebody help me to solve this problem?
I am using this code to call new window from flash:
button1.onPress = function(){
getURL("javascript:window.open('files/pictures/gallery.html','Picture Gallery','width=650, height=550, top='+((screen.height/2)-(500))+',left='+((screen.width/2)-(600))+',toolbar=no, scrollbars=no, resizable=no, menubar=no, status=no, directories=no, location=no'); void(0);");
};
When I play it on Firefox it's ok, but in IE 7 it doesn't work! It shows that is "error on page".
Can somebody help me to solve this problem?