When using getattribute in JavaScript, I am facing issues with its compatibility in IE 11. Is there an alternative or equivalent method to getattribute that I can use? Below is a snippet of my code:
Code:
var innerFrames = currentRow.all.tags("iframe");
if(innerFrames.length > 0)
{
var currentFrame = innerFrames[0];
var frmID = currentFrame.getAttribute("id");
var ownerID = currentFrame.getAttribute("displayID");
}
var sGroupCaption = (currentFrame.getAttribute("Caption") == null) ? "" : currentFrame.getAttribute("Caption");
if (currentFrame.getAttribute("isEmpty")!= null){ }
var Type = (currentFrame.getAttribute("displayType") == null) ? "" : currentFrame.getAttribute("displayType");
Please suggest an alternative for getattribute in JavaScript that I can use as a replacement.
Thank you