Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function redirect (urlFromForm) {
- var query = urlFromForm.split("?")[1]; //This is gonna get everything after ?
- var newUrl = "https://www.google.com/search?q=";
- location.href = newUrl + query;
- }
Add Comment
Please, Sign In to add comment