Below is a code snippet of some frames that I am trying to execute using the DOM in javascript. I can use document.getElementById('raiseConfirm').click()
in FF and IE. He will not work on safari. I tried many different things to try to get to the anchor using the raiseConfirm id. It seems that document.getElementById()
in this case does not find any of the elements in this frame. I tried window.document
, self.document
, contentWindow
, contentDocument
, I tried to name this frame like this, window.frames['gvdd'].document
, and when I check this, the document is an object and has something in it , but as soon as I try to use the getElementById()
function on it, it returns undefined
or null
.
Can someone point me to the right solution?
<form method=β"POST" action=β"somescript.asp?CMD=POST&βTODO=TRUE2" id=β"FORMSV2DISPLAY" name=β"FORMSV2DISPLAY">β <a id=β"raiseConfirm" href=β"#divConfirm" class=β"nyroModal">HERE IT ISβ</a> <div id="divConfirm" style=β"display:βnone;β">ββ¦β</div>β
source share