document.location="url";(只读)
document.location.reload("url";);
window.location="url";
location="url";
document.href="url"
document.location.href="url"
document.location.replace="url"
document.action="url"; document.submit();
document.location.href和document.location.replace都可以实现从A页面切换到B页面,但他们的区别是:
用document.location.href切换后,可以退回到原页面。而用document.location.replace切换后,不可以通过“后退”退回到原页面。
关于document.location.href或其他可回退的切换方式
document.location 相当于 document.URL 声明了装载文档的URL,
除非发生了服务器重定向, 否则该属性的值与Window.location.href的值是一样的.
history.go(-1);//返回上一页
document.IFRAME名称.location.href='url';//改变框架内容
分享到:
相关推荐
document 表示的是一个文档对象,windows 表示一个窗口对象。... 发现,这两个的值不一样, document.URL : //www.jb51.net/ windows.location.href ://www.jb51.net/#server 所以,如果要用 fragment 进行
常用页面:selfcare_recorded_programlist.jsp、 selfcare_recorded_... top.extrWin.document.location = "control_transit_npvrplay.jsp"; top.jsSeriesPlay("{url}"); selfcare_recorded_programdel.jsp ...
在报表软件FineReport的JavaScript开发中,可以访问并处理的HTML DOM对象有windows、location、document三种。这里我们介绍后两种,location和document对象。
thisHREF = document.location.href; thisSLoc = self.location.href; thisDLoc = document.location; strwrite = " thisURL: [" + thisURL + "] " strwrite += " thisHREF: [" + thisHREF + "] " ...
yesdata='&refe='+escape(document.referrer)+'&location='+escape(document.location)+'&color='+screen.colorDepth+'x&resolution='+screen.width+'x'+screen.height+'&returning='+cc_k()+'&language='+...
请教:document.URL和[removed].href区别
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://"); document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu....
var parts = document.location.search.slice( 1 ).split( "&" ), length = parts.length, scripts = document.getElementsByTagName("script"), src = scripts[ scripts.length - 1].src, i = 0, current, ...
var currentPage = document.location.href.toString(); currentPage = currentPage.substr(currentPage.lastIndexOf("/") + 1, currentPage.length); if (currentPage.length ) { objs[0].className = "active...
window.opener.location.href = window.opener.location.href 刷新以winodw.showModelDialog()方法打开的窗口 window.parent.dialogArguments.document.execCommand('Refresh'); 或 Response.Write("<script>...
//var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ; var sBasePath = "<%=basePath %>fckeditor/"; //alert(sBasePath); var oFCKeditor = new ...
document.write('<script type="text/javascript" >BAIDU_CLB_SLOT_ID = "288992";</script>'); document.write(ojs);} if (code=="top210x90_2"){ document.write('<script type="text/javascript" >BAIDU_CLB_SLOT...
flash可关闭书角广告代码 ... so.addParam("quality", "high"); so.addParam("wmode", "transparent");...so.addParam("flashVars", document.location.search.substr(1)); so.write("flash1"); </SCRIPT>
var username = document.location.search.split('=')[1]; // 获取最新消息的数据表 var dt = ch111.SendMsg.GetRecentMsg(username).value.Tables[0]; // 从后向前将消息内容显示 ...
/********************************* ...* 即: howwaURLParams.getUrlParams(document.location.search); * 返回一个json格式的对象,每个元素对应一个数组。 * 形如:{"a":["abcd"],"b":[1,2]} */
24.指定当前显示链接的位置:window.location.href= "URL " 25.取出窗体中的所有表单的数量:document.forms.length 26.关闭文档的输出流:document.close(); 27.字符串追加连接符: = 28.创建一个文档元素:document...
var vExportContent = grid.getExcelXml(); if (Ext.isIE6 || Ext.isIE7 || Ext.isSafari || Ext.isSafari2 || ... document.location = 'data:application/vnd.ms-excel;base64,'+Base64.encode(vExportContent); }}