I want to inject a custom JS File within an IFrame (which is rendered via a Plugin)..
The below code in my Themes -> functions.php, injects my External JS File into the MAIN Document :
add_action('init', 'ajaxcomments_load_js', 10);
function ajaxcomments_load_js(){
wp_enqueue_script('ajaxcomments', get_stylesheet_directory_uri().'/js/ajaxCode.js');
}
However, in Wordpress how can I inject JS File into a specific IFrame ?
Any help would be great. Thanks !