Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Alert not working

 
Ranch Hand
Posts: 150
2
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!

I have to generate a quiz with JavaScript, with three questions and an alert at the end that tells the number of points you have.

The last alert is not generated, any idea why?



PS: also, when I launch the related html page it is only working on Firefox! Nothing on chrome and opera, why can that be?
 
Saloon Keeper
Posts: 5573
144
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please post a full HTML page that demonstrates this, with as much stuff as possible removed to make it small.
 
Saloon Keeper
Posts: 10308
217
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, not much we can tell you without seeing the related HTML.

Have you already opened the developer tools in your browsers to see if it shows any errors? In most browsers you can open the developer tools by hitting F12.
 
D.J. Quavern
Ranch Hand
Posts: 150
2
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh thank you very much!
When I stumbled around in the developer tools, I saw a console error :
.
I wrote let in front of points and it worked.

Blame the python!



Can't figure out why visual code won't say anything though....
 
Stephan van Hulst
Saloon Keeper
Posts: 10308
217
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We still need to see your HTML.
 
D.J. Quavern
Ranch Hand
Posts: 150
2
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't worry about that   . It's fine, I could see the error with the developer tools.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!