title: How to pass a value to the HTML page with JavaScript redirection?
body: <p>I have the following function:</p>
  
  <pre><code>function loginUser(form){
    try {
      var user = Backendless.UserService.login(form.userid.value, form.pswrd.value);
      if (user != null) {
        window.location.href = "home.html";
      } else
        window.alert("Login failed");
      }
    } catch (e) {
      window.alert("Login failed. " + e.message);
    }
  }
  </code></pre>
  
  <p>When I redirect to <code>home.html</code>, the user object has various fields and I want to pass the value of <code>user.credits</code> to an input box on the HTML page. How would I go about doing this?</p>
  
  <p>This is what my HTML page looks like:</p>
  
  <pre><code>&lt;div&gt;Credits &lt;input id="credits" type="text" class="input-block-level" placeholder="Credits" name="credits"&gt;&lt;/div&gt;
  </code></pre>