How do you insert PHP code inside a window.open method when in an Adobe Edge animation?
window.open("<?php echo bloginfo('url'); ?>", "_self");
The PHP code is not parsed...
In order to have it work with Wordpress, I am using "Edge Suite" plugin, which requires you to import the animation as an OAM file, then I am firing it like this inside one of Wordpress' PHP file:
<?php echo do_shortcode('[edge_animation id="40"]'); ?>
You simply can't call PHP from JS.... What you need to do in your case is write the bloginfo from PHP in wordpress to a JS variable. Then you can read it from within EA.
In your case you could just try to get the base url with window.location.href https://developer.mozilla.org/en-US/docs/DOM/window.location