The iframe tag value problem

The main.jsp part of the code:
<s:iterator value="list1" id="list1">
<li><a onclick="document.getElementById('iframe').src='department.jsp'"><em>0<%=i %></em>
<s:property value="#list1" />

<iframe id="iframe" width="1046px" height="494px" scrolling="no" frameborder="0" align="left" src="../images/welcome.png" name="iframe_list">
Now to get the value of LIST1 in department.jsp, onclick can also change the SRC, the name attribute in iframe, which can meet the requirements?

Started by Alfred at December 25, 2016 - 8:04 PM

var i=document.getElementById('iframe');
Try it

Posted by Nigel at January 01, 2017 - 10:34 PM

The response to 2013-12-16 08:57:30 was removed by the administrator

Posted by Noel at January 05, 2017 - 9:02 PM

The 1 floor is solution to assign a pseudo attributes to change SRC refresh

Posted by Wanda at January 07, 2017 - 10:00 PM

May I have two pages of JS code to have a look, I will not JS

Posted by Alfred at January 12, 2017 - 10:13 PM