$(".btn_next").click(function (){ var guest = $(".s_data").val(); top.location='http://mysite?prm='+guest; });