Sohling
04-09-2006, 08:21 AM
Hello, I am a new learner of JavaScript and ActionScript. I've a problem concerning the pop-up window from flash.
I created a btn1 and here is the AS;
on (release) {
getURL("JavaScript:popup1();");
}
And the JavaScript in HTML;
<SCRIPT LANGUAGE="JavaScript">
function popup1() {
window.open('popup1.html','','toolbar=no,location= no,directories=no,status=no,menubar=no,scrollbars= no,resizable=no,width=400,height=300,left=0,top=0' );
}
</script>
now, I want to have a btn2 to pop-up a window(popup2.html) with the same property with popup1.
How can i simpify it?
Please help.:)
I created a btn1 and here is the AS;
on (release) {
getURL("JavaScript:popup1();");
}
And the JavaScript in HTML;
<SCRIPT LANGUAGE="JavaScript">
function popup1() {
window.open('popup1.html','','toolbar=no,location= no,directories=no,status=no,menubar=no,scrollbars= no,resizable=no,width=400,height=300,left=0,top=0' );
}
</script>
now, I want to have a btn2 to pop-up a window(popup2.html) with the same property with popup1.
How can i simpify it?
Please help.:)