onload event for iframes on old Opera installations

Today I ran into a huge problem that I solved just with a line of code, yeah, that sounds easy, but actually the hard part was to found where the error was.

I found it, after inspecting the code very closely, everything seemed right but Opera 2.10 was still failing to proccess the body of an iframe when an onload event was attached to it. Recent versions of Opera were working normally.

The problem was that I defined iframe.src = 'about:blank', but for some reason Opera prefers 'opera:blank', otherwise it will trigger the onload event right after setting the iframe's src, even if the value is 'about:blank'.

BTW, I found the solution by accident, I read 'opera:blank' in an old Opera's exploit and decided to do a test.

Strange are the ways of God… and Opera developers.

Related topics

apps/tags { javascript, opera, bug }

About the author

50x50_eb657bb945fcafcea0b7ab21ea951355_ProfessorFrink1.gif
xiam

José Carlos Nieto es un nerd que pretende ser estudiante de Matemáticas en la UNAM, trabaja con sus amigos haciendo cosas divertidas en Astrata.

Comments

Write your comment

Your comment:

Welcome