Hi Kotesh,
Try like this:
var oFrame = sap.ui.getCore().byId("__xmlview4--attachmentframe"); //Get Hold of iframe var oAttributes = oFrame._xContent.attributes; //iframe Attributes var oValues = {"target": oAttributes[0].value, "src":oAttributes[1].value, "id":oAttributes[2].value, "height":oAttributes[3].value, "width": oAttributes[4].value}; //Attribute Values alert(JSON.stringify(oValues)); //Alert the Attributes
Check the sample here: Plunker
Once you got hold of the attributes, I hope you know how to change them.
Regards,
Sai Vellanki.