According to the javascript dom programming art about the part of the web page that displays pictures, the code is typed out. There is a section that requires input onclick="showPic(this);return false;" to prevent the web page from popping up new links to view pictures. But when I finally ran it, a new link still popped up. The specific code is as follows:
My Gallery
snapshots
First of all, the words you get the id are spelled wrong, and secondly, the href pointing problem of the a tag conflicts with the click event
< meta charset="utf-8"/>
snapshots
Getting the id is document.getElementById('')