함수 redirect()

Jmnote (토론 | 기여)님의 2017년 8월 23일 (수) 18:52 판 (Jmnote님이 Location.href 문서를 함수 redirect() 문서로 이동했습니다)
url
goto_url
location.href
Webview
WebBrowser

1 C#

webBrowser1.Url = new Uri(url1);

2 Java

2.1 JSP

<%
response.redirect("******.jsp");
%>

2.2 ADT

WebView wv = (WebView) this.findViewById(R.id.webView1);
wv.setWebViewClient(new WebViewClient(){});
wv.loadUrl("http://example.com");

3 JavaScript

myframe.location.href="http://example.com";

4 jQuery

$('#myframe').attr('src', 'http://example.com');

5 PHP

function goto_url($url, $seconds=0) {
  die("<meta http-equiv='REFRESH' content='$seconds;url=$url'>");
}
function goto_url($url) {
  die("<script>location.href='$url';</script>");
}

6 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}