I need to attach a submit listener to every form in an iframe but I can’t use jQuery.
What’s the best way of doing this? I’d rather not use window.onload because that requires waiting until the images have loaded which may take time. Obviously, $(document).ready() would have been perfect, but as I said, I can’t use jQuery for this.
Thanks
Onload will do the trick. Martin’s jQuery approach will be maybe faster.