Advertisement
Guest User

Untitled

a guest
Jun 25th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. function setExtraInformation()
  2. {
  3. //se clicco su sì esegue tutto il codice sotto
  4. //se clicco no mi riporta alla home
  5.  
  6. var n;
  7. <html>
  8. <button type="button" class="yes" onclick="n = 1">Yes</button>
  9. <button type="button" class="no" href="home">No</button>
  10. </html>
  11.  
  12. if (var === 1)
  13. {
  14. ...
  15. }
  16. }
  17.  
  18. Il no è finito.
  19. Manca il sì però non so come farlo e come ho fatto ora sempre non funzionare ne l'if ne tanto meno n = 1.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement