Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 225
  • Last Modified:

JavaScript & JSP help

i understand that:

<script language="javascript">
function openwindowlink_edit() {
newwin = window.open("foodedit.jsp","About","height=210,width=450,scrollbars=no,resizable=no")
}
</script>

lets me open a window by:
<a href="Javascript: openwindowlink_edit()">edit</a>

How do i pass a value to the popup window?
0
yapsing
Asked:
yapsing
1 Solution
 
kotanCommented:
<a href="Javascript: openwindowlink_edit('1')">edit</a>

<script language="javascript">
function openwindowlink_edit(value) {
newwin = window.open("foodedit.jsp?value=" + value,"About","height=210,width=450,scrollbars=no,resizable=no")
}
</script>
0
 
yapsingAuthor Commented:
nice work. thanx

yapsing
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now