javascript window.open in adf
709631Jun 30 2009 — edited Jul 1 2009i have tried to use window.open(url, winName) to open a window in ADF,
i set the same winName but when i call the window.open method every time,
it always open a new window.
the code is blow:
A.jspx
...
<script>
function openWin() {
var win;
win = window.open("./B.jspx", "sampleWindow");
}
</script>
...
<af:commandButton text="open B">
<af:clientListener method="openWin" type="click"/>
</af:commandButton>
when i click the button first time, it open a new window, keep the window opening and click the button again,
it open a new window too.
anybody can help me?