I've tryed to make a script for a kind of autosubmit that opens a new tab when you put in a specific keyword, yet its not seeming to work. Is there anyway to do this with another JS event?
var text = $("#mytext");
var form = $("#myform");
text.bind("change keyup", function() {
if( $(this).val() == "keyword" )
$("#myform").openLinkInNewWindow('https://wikipedia.org/');
});
form id="myform" action="" method="post">
<input type="text" id="mytext" name="mytext" value="" placeholder="type here!" />
</form>