<script type = "text/javaScript">
thisurl = document.url;
thishref = document.location.href;
thissloc = self.location.href;
thisdloc = document.location;
strwrite = "thisurl : [" + thisurl + "] <br />"
strwrite + = "thishref : [" + thishref + "] <br />"
strwrite + = "thisloc : [" + thissloc + "] <br />"
strwrite + = "thisdloc : [" + thisdloc + "] <br />"
document.write (strwrite);
thistloc = top.location.href;
thisploc = parent.document.location;
Thisthost = top.location.hostname;
thishost = location.hostname;
strwrite = "thistloc : [" + thistloc + "] <br />"
strwrite + = "thisploc : [" + thisploc + "] <br />"
strwrite + = "Thisthost : [" + thisthost + "] <br />"
strwrite + = "thishost : [" + thishost + "] <br />"
document.write (strwrite);
tmphpage = thishref.split ( "/");
thishpage = tmphpage [tmphpage.length-1];
tmpupage = thisurl.split ( "/");
이 upage = tmpupage [tmpupage.length-1];
strwrite = "thishpage : [" + thishpage + "] <br />"
strwrite + = "thisupage : [" + thisupage + "] <br />"
document.write (strwrite);
var url = "<%= request.getRequesturi ()%>";
경고 (URL)
</스크립트>
request.getRequesturi ();
request.getRequestUrl ();
request.getQueryString ();
request.getServletPath ()
可以得到自己的网络地址 : request.getScheme ()+": //"+request.getServerName ()+":"+request.getServerport ()+request.getRequestUri ()