In the website or OA system, we often need to click on a line in the page list to view the details:
1.js Code:
1$(function(){2$.each ($ ("#listtable tr:gt (1)"),function(index,o) {//gt () subscript starting from 0, which means starting from a line greater than 13 varOutid = $ (o). attr ("id"); 4$ (O). Click (function(data) {5 varBodywidth = window.screen.width-100;6 varBodyheight = window.screen.height-150;7 varurl = document.getElementById ("url"). Value;8 varstyle = "status=no,maximize=yes,scrollbars=yes,toolbar=no,menubar=no,location=no,top=15,left=50, Resizable=yes, Height= "+bo
dyheight+ ", width=" +Bodywidth;9window.open (' yzarchivesout.action?oper=showdetail&outid= ' +outid+ "&url=" +url, ' NewWindow ', style);Ten }); One }); A});
2.jsp Code:
<Body> <TableID= "Listtable" > <TR></TR> <TR> <TD></TD> <TD></TD> <TD></TD> <TD></TD> </TR> <C:foreachItems=""var=""Varstatus=""> <TRID=""> <TD></TD> <TD></TD> <TD></TD> <TD></TD> </TR> </C:foreach> </Table> </Body>
How to jump to a new page by clicking on each line of the list (Details page)