读书人

脚本中页面转向有关问题

发布时间: 2012-01-15 22:57:48 作者: rapoo

脚本中页面转向问题?
我在iframe中的一个页面点确定后想转到另一页面,让这个页面也显示在iframe中,
代码应该怎么写?
我用window.open()可以打开此页,但其不是显示在iframe中,想用location,总是报错.

this.m_html = " <script> if (showDisNew()==7){parent.window.close();}else{window.open( 'Customer_Message.aspx?id= "+custid+ " ');} </script> ";

this.m_html = " <script> if (showDisNew()==7){parent.window.close();}else{document.location.href= 'Customer_Message.aspx?id= "+custid+ " ');} </script> ";

谢谢!


[解决办法]
window.open()打开了一个新的窗口


else{window.location= 'Customer_Message.aspx?id= "+custid+ " ');

读书人网 >asp.net

热点推荐