i'm having a problem with this javascript code. i have several buttons in flash, which, when pressed, open different pop-up windows.
i want one javacsript function to handle this. but this code is not working for me...it may be a bug. i'm still trying to get it to work.
in html doc, i wrote:
<script language="javascript">
function NewWindow(url,h,w) {
var winl = 0;
var wint = 0;
winprops =
'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'
win = window.open(url, 'win', winprops);}
}
</script>
and in my flash button action script i wrote:
on (press) {
getURL ("javascript:NewWindow(photos/photoA.jpg',400,372)"
;
}
i want one javacsript function to handle this. but this code is not working for me...it may be a bug. i'm still trying to get it to work.
in html doc, i wrote:
<script language="javascript">
function NewWindow(url,h,w) {
var winl = 0;
var wint = 0;
winprops =
'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'
win = window.open(url, 'win', winprops);}
}
</script>
and in my flash button action script i wrote:
on (press) {
getURL ("javascript:NewWindow(photos/photoA.jpg',400,372)"
}