Last active
July 18, 2018 17:14
-
-
Save misbach/7cffc59289059ab56239f1d9a069b71e to your computer and use it in GitHub Desktop.
FamilySearch Search Form
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function doSearch() { | |
var base = "https://familysearch.org/search/records/results?count=20&query="; | |
var first = document.getElementById("firstName").value; | |
var last = document.getElementById("lastName").value; | |
var place = document.getElementById("place").value; | |
var year = document.getElementById("year").value; | |
var collections = "(2125045%202126214%201921547%201878523%202761957%202489920%201807269%202568864%202202707%201858291%201968530%202513098)"; | |
var url = base+'%2Bgivenname%3A'+first+'~%20%2Bsurname%3A'+last+'~%20%2Bany_place%3A'+place+'~%20%2Bany_year%3A'+year+'~&collection_id='+collections; | |
window.location = url; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment