Send POST data along when link is clicked without using forms?
问题 I have some regular anchor tag links on my page that open up a popup window which displays whatever GET data I pass through the url: <a href="javascript:window.open('view.php?data=a%20bunch%20of%20data');">View</a> Some of this data is really long, and my crappy web host has a very small limit on the size of the GET data that can be passed in a url. Is there a way to do this with POST data instead, without using html forms? 回答1: you could also use an XMLHttpRequest http://www.w3schools.com