图像没有显示。 为什么触发onclick的行为与手动点击链接不同?

My header has an image logo but it won't show if I have the triggered click to download a file:

 $("#test").click();

If I remove this script and try clicking on the text manually, the header image shows okay. The link's:

<span id="test" onclick="window.location.href='http://www.example.com/download.php';"> . </span>

Why is this so? What's causing this problem? Why does a triggered click behave differently than manual click on a link?

Is there something as a conflict on the image and jquery. Is that conflict even possible?

Looks like this could fall under the category "fake clicking", which is not supported. See Can I call jquery click() to follow an <a> link if I haven't bound an event handler to it with bind or click already?