发布时间:2016-02-19 16:56:35编辑:微心情点击:3781
不说闲话,直接上代码
<script> thisURL = document.URL; thisHREF = document.location.href; thisSLoc = self.location.href; thisDLoc = document.location; document.getElementById("biao_tjdz").value = "" + thisURL + "" ; //获取当前地址并传值id数值biao_tjdz </script>
文本表单代码
<input type='text' name='biao_tjdz' id='biao_tjdz' />//获取到js传过来的当前页面链接OK完成
关键字词:
上一篇:已经没有了
下一篇:已经没有了