vat thenType=window.parent.oJS_Container.getType();Yes, but this is off topic. As the content of the javascript code was writing by the use of document.write from one .js file including another .js file, the later one cannot be seen until full execution of the first one completed. IAC, I dumped that approach and went for something that goes right into VFP where I have full control on everything. I, however, have to use javascript to pass the javascript variables into the URL that is passed to VFP. I am using an IFRAME with the SRC set to it so whatever is created within comes from VFP.