showModalDialog关闭后父窗口又重新回到页面顶部去了!很急吗,求解决! 直接上图:现在的问题是用户在点击保存或者关闭模态窗口之后,想让当前的光标停留在打开模态窗口的位置,但现在不知道什么原因页面就直接返回到顶部了,求懂的各位大侠给出办法!谢谢showModalDialog JS 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你打开的代码怎么写的?链接?你可以<input type=button onclick="window.showModalDialog('') 是这样来写:<a style="cursor:pointer" href="#" onclick="selectWork(this)">↓</a>//选择工作项function selectWork(thisObj){ var style = "dialogWidth:700px; dialogHeight:500x; status:0;scroll:1; help:0; resizable:1"; var indexs=thisObj.parentNode.parentNode.rowIndex-1; var fdActId=GetEl("fdActivityListForms["+indexs+"].fdId").value; var url="<c:url value='/pm/base/pm_base_activity/pmBaseActivity.do?method=editWorkDialog&fdPhaseId=${pmBasePhaseconfigForm.fdId}&fdActId=' />"+fdActId+"&fdIndexs="+indexs; var rtnVal = window.showModalDialog(Com_Parameter.ContextPath+"resource/jsp/frame.jsp?url="+encodeURIComponent(url),phaseActivities[fdActId],style); if(rtnVal==null)return; phaseActivities[fdActId].work = rtnVal; var tabObj = GetID("project_test"); work_setWorkHtml(tabObj, fdActId);} 改这样试下<a style="cursor:pointer" href="javascript:void(0);" onclick="selectWork(this)">↓</a> 不好意思 刚测试验证通过了 改成href="javascript:void(0);是可以的 谢谢!可以解释下是什么原因吗 js图片滚动问题 [100分] 网页最开始加一句js代码,实现让人点击继续就打开网页,点取消就显示空白页,可以实现吗? 求解 js出现 WebCalendar.iframe.tableWeek is undefined ,在线等解决~@ 求jquery获取table中的所有tr 如何在TOMCAT中设置中文过滤器? 求一正则 使用Javascript修改使用同一个class的控件 这个聊天室中的白板是怎么实现的呢? 用table在一行中显示他们? select选中input输入框部分文字 javascript 循环的问题! extjs如何将数组提交到后台?
<input type=button onclick="window.showModalDialog('')
<a style="cursor:pointer" href="#" onclick="selectWork(this)">↓</a>
//选择工作项
function selectWork(thisObj){
var style = "dialogWidth:700px; dialogHeight:500x; status:0;scroll:1; help:0; resizable:1";
var indexs=thisObj.parentNode.parentNode.rowIndex-1;
var fdActId=GetEl("fdActivityListForms["+indexs+"].fdId").value;
var url="<c:url value='/pm/base/pm_base_activity/pmBaseActivity.do?method=editWorkDialog&fdPhaseId=${pmBasePhaseconfigForm.fdId}&fdActId=' />"+fdActId+"&fdIndexs="+indexs;
var rtnVal = window.showModalDialog(Com_Parameter.ContextPath+"resource/jsp/frame.jsp?url="+encodeURIComponent(url),phaseActivities[fdActId],style);
if(rtnVal==null)return;
phaseActivities[fdActId].work = rtnVal;
var tabObj = GetID("project_test");
work_setWorkHtml(tabObj, fdActId);
}
<a style="cursor:pointer" href="javascript:void(0);" onclick="selectWork(this)">↓</a>
可以解释下是什么原因吗