자바스크립트로 url 획득 정보
HTML 자바스크립트로 url 획득본문
<script language="javascript">
function urlParse() {
var idx = document.URL.indexOf('?');
var params = new Array();
if (idx != -1) {
var pairs = document.URL.substring(idx+1, document.URL.length).split('&');
for (var i=0; i<pairs.length; i++) {
nameVal = pairs[i].split('=');
params[nameVal[0]] = nameVal[1];
document.write(idx);
}
}
return params;
}
urlParse();
</script>
<script>
var today=new Date()
document.write('<center>'+today.toString()+'<br>'+window.location+'</center>')
</script>
<p><input type=button name=simabuttonviewsource value="View Source" onClick='window.location="view-source:"+window.location.href'><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
function urlParse() {
var idx = document.URL.indexOf('?');
var params = new Array();
if (idx != -1) {
var pairs = document.URL.substring(idx+1, document.URL.length).split('&');
for (var i=0; i<pairs.length; i++) {
nameVal = pairs[i].split('=');
params[nameVal[0]] = nameVal[1];
document.write(idx);
}
}
return params;
}
urlParse();
</script>
<script>
var today=new Date()
document.write('<center>'+today.toString()+'<br>'+window.location+'</center>')
</script>
<p><input type=button name=simabuttonviewsource value="View Source" onClick='window.location="view-source:"+window.location.href'><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
추천
0
0
댓글 0개