Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<!DOCTYPE html>
<input type="text" id="username" />
<input type="text" id="subtext"/>
<button type="button" id="create">Create</button>
<script type="text/javascript">
var username = document.getElementById("username").value;
var subtext = document.getElementById("subtext").value;
var url = ""+username+"&subtext="+subtext;
document.getElementById("create").onclick = function () {
location.href = url;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment