window.location.href 和self.location的区别

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/13 05:40:27

window.location.href 和self.location的区别

你从字面上就可以理解到 window 指的是当前窗口 而 self 指的是自己 在HTML 中 由于页面可以镶嵌页面 所以这2个就有了 区别 比如说 我有个页面A.HTML 里面嵌套了一个B.HTML 在A中使用 window.location 跳转 就把整个 页面跳转了 而在 A中镶嵌B页面的位置 使用了 self跳转 就只是把B界面跳转了 A页面其他地方没有变化 就拿 很简单的 百度搜索页面来比 你输入不同的搜索内容 变化的只是下面的内容 而搜索栏本身没有变化 就是self实现下面的跳转

window.location.href 和self.location的区别 我要在的href里填写一段由window.location.href获得的地址,怎么编写? document.location.href.substring onclick={window.location.href='deleteDataAction.jsp?id='} 谁能帮我解释一下 document.location.href.toLowerCase()是什么意思 window.location.href的用法用window.location.href跳转时传递两个值怎么写这样写传过的值是dr=123drr=234正确写法怎么写? else语句是登录的判断过程,主要代码如下:alert(用户名不能为空!);window.location.href=login.jsp; alert(请填写密码!);window.location.href=login.jsp; alert(用户名不存在!);window.location.href=login.jsp; alert self.location.href的具体用法 if (top = self)top.location.href = Admin_Login. document.location.href与document.frm.action有什么差别? window.top.location.href='/index.jsp';我打开华中科技大学的HUB主页就显示这个,是啥意思?(我用搜狗浏览器打开就不会哦!就正常了)解释解释啥意思. document.location和window.location有什么区别 window.location和document.location的区别分析 window.location.herf和有什么区别 如何知道window.location.reload() 完成 请问在javascript中top.location.href 与 location.href的区别是什么?就是有一个点击事件onclick,我朋友是用top.location.href 我觉得用location.href就好了,为什么要加个top呢?请问JS高手指教下,这两者的区别在 document.location.href='CouponAction.do?method=什么作用,含义 function delet(a) { var b,c; b = dat_delet.afunction delet(a){ var b,c; b = dat_delet.asp?urlid=; c = b + a; window.location.href=c;}; onclick='delet(& myUrl &)'该句调用函数,如果里边加双引号则数据无法显示,如果用单引号