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

RSS Icon Subscribe to comments

You need to login to post a comment.