I am trying to figure out this code:
<script>
function process()
{
var url="https://stackoverflow.com/questions/" + document.getElementById("url").value;
location.href=url;
return false;
}
</script>
<form onSubmit="return process();">
URL: <input type="text" name="url" id="url"> <input type="submit" value="go">
</form>
What I want to happen is if the user enters 11811782 in the box the page Form value creates a url will open, but now on onsubmit I want a modal/popup open instead. I found this page: How to call multiple JavaScript functions in onclick event? and also this link: onclick open window and specific size
I tried to implement those suggestions into code but it would not work.