+ 2
How to redirect to another .html file if a condition is triggered?
For example if x == 10 The current html file will move to another one
2 Antworten
+ 5
if (x==10) { document.location.href = 'new_document_url'; }
... or also window.location.href ^^
+ 2
Awesome, thanks :D