file on domain_b where you want the iframe created

This file resides on domain_b.com and is where you want the iframe created the <script> tag will load domain_a.js from domain_a.com and that javascript will create the iframe for you.