개발2015. 4. 23. 22:03
300x250

각 언어별 리다이렉트 구문들


1. html 

<meta http-equiv='refresh' content='0;url=redirect_url'>


2. javascript

<script>

document.location.href = ‘redirect_url’; 

</script>  


3. PHP 

<?php

header("Location: redirect_url");

?>


4. JSP 

<% 

response.sendRedirect("redirect_url"); 

%>


5. ASP 

<% 

response.redirect "redirect_url" 

%>



300x250
Posted by 마스타