在其他页面上使用JavaScript发布

在其他页面上使用JavaScript发布,javascript,post,get,Javascript,Post,Get,我得到了这个脚本,从这里获得友好的URL和获取请求表单。。。 这是剧本 <form id='contactus' action='search_out.php' method='get' accept-charset='UTF-8'> <input type="text" name="first" value="" id="first"> <input type="text" name="second" value="" id="second">

我得到了这个脚本,从这里获得友好的URL和获取请求表单。。。 这是剧本

<form id='contactus' action='search_out.php' method='get' accept-charset='UTF-8'>
 <input type="text" name="first" value="" id="first">
    <input type="text" name="second" value="" id="second">
    <input type="text" name="third" value="" id="third">

    <p><input type="button" value="Continue &rarr;" onclick="submitFriendly();"></p>
</form>
<script type="text/javascript">
function submitFriendly() {
window.location.href = window.location.href  + '/Search/' + document.getElementById('first').value + '/' + document.getElementById('second').value + '/' + document.getElementById('third').value;
}
</script>

函数submitFriendly(){ window.location.href=window.location.href+'/Search/'+document.getElementById('first')。value+'/'+document.getElementById('second')。value+'/'+document.getElementById('third')。value; }
我不擅长javascript。。。我想将此发布到新页面,即search_out.php,但此脚本发布在同一页面上。。。有没有办法在其他页面上发布

请帮忙
thx

脚本所做的是获取当前位置。给它一个新的

window.location.href = "search_out.php/"+document.get.......