Is getElementByClass safe to use across browsers like getElementById?

Update Currently using:

 window.opener.document.getElementById

But I want to reference the object by classname (there will be only 1 element with that classname).

Edit
Report