반응형
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr" />
<title>url replace</title>
</head>
<script language = javascript>
<!--
var url1 = 'http://a.kr';
var url2 = 'http://b.kr';
if( document.URL.match(url1) ) document.location.href = document.URL.replace(url1, url2);
// -->
</script>
<body>
body 부분
</body>
</html>
반응형