Linking multiple html files in a html file for a product on bolt cloud

Hi, I am trying to create Javascript Login Form Validation and have a button for demo.html file using JavaScript function

window.location = "/serveFile?filename=demo.html";

but it get 404 file not found error when i clicked on button.

@rahul.singh1 Please help me out.

Hi @sauravganguly359,

Use the below syntax -

 window.location = "/control?name=demo.html";

In case you want to build your own web app, I will suggest you use Bolt Cloud API. Check this link

Do let me know in case you need any other information.