1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > js获取当前地址 JS获取当前URL的示例代码【javascript】

js获取当前地址 JS获取当前URL的示例代码【javascript】

时间:2022-06-11 12:15:58

相关推荐

js获取当前地址 JS获取当前URL的示例代码【javascript】

web前端|js教程

JS获取当前URL

web前端-js教程

dede下载站 源码,树莓派 装vscode,Ubuntu无线登录,tomcat访问外部项目,爬虫网络、,还是php,提升seo效率的地方,个人网站博客下载,优质网站模板lzw

窗口缩放源码,ubuntu界面中文设置,tomcat突然读不到时区,滴滴数据爬虫,php全栈架构师,seo 常识 博客lzw

thisURL = document.URL;

thisHREF = document.location.href;

thisSLoc = self.location.href;

thisDLoc = document.location;

strwrite = "

酷炫个人网站源码,vscode 教材,ubuntu自启动脚本,java tomcat,sqlite 字段别名,怎么看服务器的系统日志文件,数字翻滚插件,abp 换前端框架,小爬虫的阅读答案,深圳学php,SEO技术面试,两网站会员同步,音乐盒网页源码,外贸商城模板 英文,微信充值页面模板html,纯easyui管理系统模板,欢乐赚程序源码lzw

"

strwrite += "

"

strwrite += "

"

strwrite += "

"

document.write( strwrite );

thisDLoc = document.location;

thisURL = document.URL;

thisHREF = document.location.href;

thisSLoc = self.location.href;

thisTLoc = top.location.href;

thisPLoc = parent.document.location;

thisTHost = top.location.hostname;

thisHost = location.hostname;

strwrite = "

"

strwrite += "

"

strwrite += "

"

strwrite += "

"

document.write( strwrite );

thisTLoc = top.location.href;

thisPLoc = parent.document.location;

thisTHost = top.location.hostname;

thisHost = location.hostname;

tmpHPage = thisHREF.split( "/" );

thisHPage = tmpHPage[ tmpHPage.length-1 ];

tmpUPage = thisURL.split( "/" );

thisUPage = tmpUPage[ tmpUPage.length-1 ];

strwrite = "

"

strwrite += "

"

document.write( strwrite );

thisURL:[" + thisURL + "]
thisHREF:[" + thisHREF + "]
thisSLoc:[" + thisSLoc + "]
thisDLoc:[" + thisDLoc + "]
thisTLoc:[" + thisTLoc + "]
thisPLoc:[" + thisPLoc + "]
thisTHost:[" + thisTHost + "]
thisHost:[" + thisHost + "]
thisHPage:[" + thisHPage + "]
thisUPage:[" + thisUPage + "]

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。