在frame中打开网页
function open_job()
{
window.top.document.getElementById("maincontent").cols = "60%,2%,*";
window.open("warning.php?content="+"please select one record",'operation');
window.open("job_mgt/job_mgt.php",'mainframe');
}
function open_doc()
{
window.top.document.getElementById("maincontent").cols = "100%";
window.open("page/doc_mgt/doc_management.php", "mainframe");
}
这两个函数,如果先调用第一个就没问题,如果先调用第二个再调用第一个,那么第一个中的 window.open("warning.php?content="+"please select one record",'operation');这句执行的时候就不会再operation中打开页面,而是全屏打开的
到底是什么原因呢?
function open_job()
{
window.top.document.getElementById("maincontent").cols = "60%,2%,*";
window.open("warning.php?content="+"please select one record",'operation');
window.open("job_mgt/job_mgt.php",'mainframe');
}
function open_doc()
{
window.top.document.getElementById("maincontent").cols = "100%";
window.open("page/doc_mgt/doc_management.php", "mainframe");
}
这两个函数,如果先调用第一个就没问题,如果先调用第二个再调用第一个,那么第一个中的 window.open("warning.php?content="+"please select one record",'operation');这句执行的时候就不会再operation中打开页面,而是全屏打开的
到底是什么原因呢?
解决方案 »
- 后台发布的文章 前台显示 点击可进入相应的内容页
- struts1中,struts-config中的redirect=true。怎么在页面上取得action中参数的值?
- OGNL表达式问题......
- oracle instr问题
- JSP 下拉列表的问题
- 我的数据查询为什么会出错?
- request.getParameter("ID")是否为""(去掉空格后)或者为null的判断!100分求
- tomcat打开后总是自动关闭!急!!!!!!!!!
- 有关下拉列表的属性
- 如何能读出链接的内容?焦急万分,盼回复!
- 只想在点击其中一个按钮时触发alert,应该怎么办??
- 在JSP 用<a>标签 或者button 跳转连接 xml文件问题
我把这句去掉后就一切正常了,为什么呢?
function open_job()
{
window.top.document.getElementById("maincontent").cols = "60%,2%,*";
window.open("warning.php?content="+"please select one record",'operation');
window.open("job_mgt/job_mgt.php",'mainframe');
}
如果改成
function open_job()
{
window.top.document.getElementById("maincontent").cols = "60%,2%,*";
window.open("job_mgt/job_mgt.php",'mainframe');
window.open("warning.php?content="+"please select one record",'operation');
}
就有的时候是正确的,有的时候warning.php这个页面就会全屏显示
window.top.document.getElementById("maincontent").cols = "100%";
这句不应该这么写,应该写成"*,0,0"