How to open a file using javascript? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 1

How to open a file using javascript?

Hey there! I was working on a project and as always getting started with the login form ... I found difficulty in opening another html file using neither window.open worked nor does window.location.href work so please help me! to get out of this stuff https://code.sololearn.com/W68iiD6u8Ov7/?ref=app

20th Apr 2020, 7:28 PM
Rudra
Rudra - avatar
1 Respuesta
+ 2
try location.replace.. it woks for me..
21st Apr 2020, 6:33 AM
Ayan Poddar
Ayan Poddar - avatar