We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 303bf9e commit eb9e7baCopy full SHA for eb9e7ba
1 file changed
merry-christmas/2025/merry-christmas-2025.html
@@ -298,14 +298,14 @@ <h3>
298
img.src='https://javascript-2020.github.io/storage/images/snowflake1.png';
299
img.style.cssText = 'position:absolute;bottom:50px;right:50px;z-index:99';
300
img.tabIndex=0;
301
- img.onclick = e=>e.stopPropagation();
302
- img.onkeydown = e=>e.key=='m' && show();
+ img.onclick = show;
303
304
document.body.append(img);
305
306
307
- function show(){
+ function show(e){
308
+ e.stopPropagation();
309
window.open('https://javascript-2020.github.io/images/image-1.jpg');
310
311
}//click
0 commit comments