Call JavaScript from External Interface


/ Published in: ActionScript
Save to your folder(s)

There must also be a JavaScript function defined in the containing HTML page:
function makePopup(url,pop_name,width,height) {
window.open(url, pop_name, "width="+width+",height="+height+",resizable=yes,scrollbars=yes");
}


Copy this code and paste it in your HTML
  1. import flash.external.*;
  2. ExternalInterface.call("makePopup('mylink.html','My Link','750','475')");

Report this snippet


Comments


You need to login to view comments.