User:Metaknowledge/vector.js

$(function { $("#firstHeading").prop("contenteditable", "true"); $('#firstHeading').keypress(function (e) { var key = e.which; if(key == 13) { window.location = "https://en.wikipedia.org/w/index.php?search=" + $('#firstHeading').text + "&title=Special%3ASearch&go=Go"; return false; } }); });