A more lightweight solution would be to hash the password and have a copy of that file at this url.
windows.location = hash(password);
windows.location = hash(password);
Also now all intermediate things that have access to the hashed url would suddenly have access to a secure piece of information.
Don’t be clever with security
No JavaScript required a d highly efficient
Considering it's been around longer than that, yes I think it will be around in 15 years