Issue in JavaScript & event

issue in JavaScript & html event,
it’s not working in my laptop

what is your problem