JSFiddle - React, Tailwind, and code Playground

by bvaughn

HTML

<form name="googleSeach" onsubmit="test(event)">
    <input name="searchTxt" id="searchTxt" type="search" placeholder="Google Search" />
    <input type="submit" value="Find" />
</form>

JavaScript

window.test = function (event) {
    event.preventDefault();
    location.href = "http://www.google.ru/webhp?newwindow=#q=" + document.getElementById('searchTxt').value;
    return false;
}