We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb9a00a commit 303bf9eCopy full SHA for 303bf9e
1 file changed
merry-christmas/2025/merry-christmas-2025.html
@@ -297,13 +297,15 @@ <h3>
297
var img = new Image(50,50);
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.onclick = click;
+ img.tabIndex=0;
301
+ img.onclick = e=>e.stopPropagation();
302
+ img.onkeydown = e=>e.key=='m' && show();
303
+
304
document.body.append(img);
305
306
- function click(e){
307
+ function show(){
308
- e.stopPropagation();
309
window.open('https://javascript-2020.github.io/images/image-1.jpg');
310
311
}//click
0 commit comments