China
How to take out the value of "China" and pass it as a parameter to login.jsp
Use the InnerText attribute to extract using Javascript. It is best to set an ID so that you can get the tag element you want to get the value through GetElementById.
<a href="login.jsp">中国</a><script type="text/javascript">document.getElementsByTagName('a')[0].onclick = function() { this.href += '?country=' + encodeURIComponent(this.innerHTML);}</script>
HTML code
China