I have an iFrame, where I want to send a JavaScript command after loading. My current code looks like this:
<iframe src="http://www.test.tld/" onload="__doPostBack('ctl00$ctl00$bLogout','')">
But with this code the command isn't executed. What must I change to make it work? Only Chrome and Firefox have to be supported.
<iframe src="http://www.w3schools.com" onload="alert('test')" />
– Sulphate__doPostBack
does not work - I don't know. Is function__doPostBack
even present in the page? – SulphateonLoad
instead ofonload
? – Domineca