๊ธฐ๋ณธ์ ์ธ ํŽ˜์ด์ง€ ๋ฆฌ๋””๋ ‰์…˜

๊ฐ„๋‹จํ•œ ํŽ˜์ด์ง€ ๋ฆฌ๋””๋ ‰์…˜์€ ์•„๋ž˜์ฒ˜๋Ÿผ ํ•˜์‹œ๋ฉด ๋˜์š”~

<head>
<script type="text/javascript">
<!--
   window.location="http://www.newlocation.com";
//-->
</script>
</head>

 

 


๋ฆฌ๋””๋ ‰์…˜ ๋ฉ”์‹œ์ง€๋ฅผ ๋ณด์—ฌ์ฃผ๊ณ  ํŠน์ • ์‹œ๊ฐ„ ํ›„์— ๋ฆฌ๋””๋ ‰์…˜ํ•˜๊ธฐ

<head>
<script type="text/javascript">
<!--
function Redirect()
{
    window.location="http://www.newlocation.com";
}

document.write("You will be redirected to main page in 10 sec.");
setTimeout('Redirect()', 10000);
//-->
</script>
</head>

์—ฌ๊ธฐ์„œ ์‚ฌ์šฉ๋œ setTimeout() ๋ฉ”์†Œ๋“œ๋Š” JavaScript์—์„œ ๊ธฐ๋ณธ์œผ๋กœ ์ œ๊ณตํ•˜๋Š” ๋ฉ”์†Œ๋“œ๋กœ ํŠน์ • ์‹œ๊ฐ„ ํ›„์— ๋‹ค๋ฅธ ํ•จ์ˆ˜๋ฅผ ํ˜ธ์ถœํ•  ์ˆ˜ ์žˆ๊ฒŒ๋” ํ•ด์ค๋‹ˆ๋‹ค.

 


๋ธŒ๋ผ์šฐ์ € ์ข…๋ฅ˜์— ๋”ฐ๋ฅธ ๋ฆฌ๋””๋ ‰์…˜

<head>
<script type="text/javascript">
<!--
var browsername=navigator.appName; 
if( browsername == "Netscape" )
{ 
   window.location="http://www.location.com/ns.htm";
}
else if ( browsername =="Microsoft Internet Explorer")
{
   window.location="http://www.location.com/ie.htm";
}
else
{
  window.location="http://www.location.com/other.htm";
}
//-->
</script>
</head>

 

 

 

Reference : http://www.tutorialspoint.com/javascript/javascript_page_redirect.htm