Adding preventDefault to the click Event of the button for a to block the default behavior of the browser seems to be necessary in the impression. If this is not added, it seems that only ie6 has encountered problems. See: changed the image address, the image disappears, the style is loaded, but the style file is gone. Just like the download of A resource is interrupted. The correct explanation is that when you use element A in IE6 as A button, remember to call preventDefault () in the onclick event (), IE6 will force the current active HTTP connection to close, leading to abnormal loading of other resources or scripts being requested. However, if the resource has been cached, this problem will not occur.
The Code is as follows:
In ie6, the image will appear. If you click to change the image src, the image will not appear. preventDefault or return false is required.
Click to change image address