• 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
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Alert not working

 
Ranch Foreman
Posts: 266
12
IntelliJ IDE Firefox Browser 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: 5855
146
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: 10736
229
  • 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 Foreman
Posts: 266
12
IntelliJ IDE Firefox Browser 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: 10736
229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We still need to see your HTML.
 
D.J. Quavern
Ranch Foreman
Posts: 266
12
IntelliJ IDE Firefox Browser 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.
 
The problems of the world fade way as you eat a piece of pie. This tiny ad has never known problems:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!