iframe的src重新设置为do.asp?aa=aa后,用location.reload(),刷新的好像是是do.asp?aa=aa,怎样刷新时去掉do.asp后的参数? 这样好像是整个页面成了do.asp了,我用iframeid.location.href='do.asp';也是这样,我只想让iframe内的网页是'do.asp'怎么办? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 因为你使用的是iframe而不是frame所以你因该这样:iframeid.src='do.asp';不知道能否满足你的要求----- 重定义 location.reload()函数iframeid.location.reload=function(){iframeid.location.href='do.asp'} iframe好像没有location属性吧? iframeid.location.reload=function(){self.frames["iframeid"].location.href='do.asp'} self.frames["iframeid"].location.reload=function(){self.frames["iframeid"].location.href='do.asp'} document.getElementById('iframeid').location=document.getElementById('iframeid').location.href.split('?')[0]或者:document.getElementById('iframeid').src='do.asp' iframeid.location.href = iframeid.location.pathname;/***********************************如果url=http://www.revival.com.cn/test.asp?id=xxx&class=yyylocation.pathname //返回test.asplocation.search //返回?id=xxx&class=yyy************************************/ document.frames.iframeid.location = document.frames.iframeid.location.pathname; iframe的name属性值.location.href="do.asp"; starwu(星沉海底) 的方法比较好 在页面跳转时,触发本页面的一个函数,提示是否保存草稿 |zyciis| 用什么办法可以停止js继续执行,除了用throw new Error()方法,这样可以停止js执行,但浏览器左下角会显示有错误 求助!~AJAX动态插入网页内容的代码在FF下无法输出 javascript得到来源页解析问题 转义字符怎么加?????????????? js+html js报了我看不懂的错误 版主有空么?回答我这个菜鸟问题 如何使 title 属性里的文本换行? 哪里有比较好的javascript的教材和文档? 帮忙... 如何避免数据库重复插入相同记录?asp+sql server 2000!!!
iframeid.src='do.asp';不知道能否满足你的要求-----
document.getElementById('iframeid').src='do.asp'
如果url=http://www.revival.com.cn/test.asp?id=xxx&class=yyy
location.pathname //返回test.asp
location.search //返回?id=xxx&class=yyy
************************************/