Set name property of IFRAME created in a layout

I have managed to do this with raw html, however I’m wondering if there is a “correct” way to do this with the api.

[code]
var myLayout;

	function doOnLoad() {

		// Layout
		myLayout = myLayout = new dhtmlXLayoutObject({
			parent: document.body,
			pattern: "2U"
		});
		myLayout.cells("a").hideHeader();
		myLayout.cells("b").hideHeader();
		
		myLayout.cells("a").attachURL("tree.htm", null, {fname: "Frame1"});
		myLayout.cells("b").attachURL("about:blank", null, {fname: "contentFrame"});
		
		//myLayout.cells("b").attachHTMLString('<iframe name="contentFrame"  width="100%" height="100%" scrolling="yes" marginheight="0" marginwidth="0" frameborder="0"></iframe>');
	}
</script>[/code]

tree.htm contains links that have a target=“contentFrame” attribute. When I click on such a link, the content should be shown in cell “b”. If I use

attachURL("about:blank", null, {fname: "contentFrame"});

this does not occur. If I instead use the commented line to add the IFRAME, then it works correctly. Is there a way to achieve this with the api?

Thanks

Hello
Try to use getFrame method to get inner window’s content to manipulate it then.