Guest User

Untitled

a guest
Dec 17th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. function redirect (urlFromForm) {
  2. var query = urlFromForm.split("?")[1]; //This is gonna get everything after ?
  3. var newUrl = "https://www.google.com/search?q=";
  4. location.href = newUrl + query;
  5. }
Add Comment
Please, Sign In to add comment