Home > Backend Development > PHP Tutorial > 将参数带入网页,该怎么处理

将参数带入网页,该怎么处理

WBOY
Release: 2016-06-13 12:32:30
Original
875 people have browsed it

将参数带入网页

<br />
for(condition)<br />
{<br />
   echo '<a type="button" class="print" onclick="showprint(this)添加部分;" target="_blank">打印</a>';<br />
}<br />
<br />
<script language = "javascript"><br />
function showprint(obj){<br />
obj.removeAttribute("href");<br />
obj.onclick=null;<br />
obj.style.textDecoration= 'none ';<br />
window.open("a.php?url=","_blank");<br />
}<br />
</script>
Copy after login


因为页面是带参数的,且在for循环中。如果是js中带参数的话就无法起到for循环的作用,如何修改才能使其带入指定参数?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template