If I have a beacon:
I want a method to be called once the beacon request finishes. Somethin
This will load the StackOverflow logo.
If it loads successfully, the alert('Image Loaded');
is performed.
If it fails, the alert('Error Loading Image');
is performed.
Of course, either of these can be replaced with your own functions.
As a new user, It refused my image tag but the image tag should only contain the id='beacon'
attribute. unless you want to add a class. We're setting the src
attribute in code here, typically images that you are monitoring for completion have src
values that are set programmatically anyway.