>>更多访客
2011年03月01日
最近客户提出来,打开的窗口含有参数列,也就是能够看都一些信息的id等。
所以修改了window.open() 和 frame 的写法。
1.window.open()
原来的写法是
window.open("/someAction.do?action=dosth&fileId=${ id}&type=1","somewindow","toolbar=no,location=no,st atus=no,menubar=no,scrollbars=auto,resizable=yes,wi dth=100,height=200")
修改后增加了一个 form
新的js写法为
var somewindow=window.open("","somewindow","toolbar=no ,location=no,status=no,menubar=no,scrollbars=auto,r esizable=yes,width=100,height=200") getSingleElement('someForm').action.value='dosth'; getSingleElement('someForm').target='somewindow'; // target is important getSingleElement('someForm').submit();
这样就看不到关键信息了
2011年03月01日
最近客户提出来,打开的窗口含有参数列,也就是能够看都一些信息的id等。
所以修改了window.open() 和 frame 的写法。
1.window.open()
原来的写法是
window.open("/someAction.do?action=dosth&fileId=${ id}&type=1","somewindow","toolbar=no,location=no,st atus=no,menubar=no,scrollbars=auto,resizable=yes,wi dth=100,height=200")
修改后增加了一个 form
新的js写法为
var somewindow=window.open("","somewindow","toolbar=no ,location=no,status=no,menubar=no,scrollbars=auto,r esizable=yes,width=100,height=200") getSingleElement('someForm').action.value='dosth'; getSingleElement('someForm').target='somewindow'; // target is important getSingleElement('someForm').submit();
这样就看不到关键信息了