So the code that I have so far is:
&
You could add an event handler to your input like so:
document.getElementById('addLinks').onkeypress=function(e){ if(e.keyCode==13){ document.getElementById('linkadd').click(); } }