Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 3 years ago.
Improve this question
I want the browser to send an alert saying "hello" when I put the following in my url:
I have tried:
javascript://(function(){alert('this is a bookmarklet';})()
also tried it like:
javascript:(function(){alert('this is a bookmarklet';})()
I'm expecting an alert pop up and instead nothing is happening. Is it because I have an adblocker? does that disable popups like this.
EDIT
No, just disabled my adblocker and its still not working.
I am annoyed because this seems like a really good way for me to actually make my javascript tinkering useful.
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)