"함수 redirect()"의 두 판 사이의 차이

(새 문서: category:web ;url ;goto_url ;location.href ;Webview ;WebBrowser ==C#== category: Csharp <source lang='csharp'> webBrowser1.Url = new Uri(url1); </source> ==Java== ===ADT===...)
 
18번째 줄: 18번째 줄:
WebView wv = (WebView) this.findViewById(R.id.webView1);
WebView wv = (WebView) this.findViewById(R.id.webView1);
wv.setWebViewClient(new WebViewClient(){});
wv.setWebViewClient(new WebViewClient(){});
wv.loadUrl("http://eqcode.com");
wv.loadUrl("http://example.com");
</source>
</source>


24번째 줄: 24번째 줄:
[[category: Javascript]]
[[category: Javascript]]
<source lang='javascript'>
<source lang='javascript'>
myframe.location.href="http://eqcode.com";
myframe.location.href="http://example.com";
</source>
 
==jQuery==
[[category: jQuery]]
<source lang='jquery'>
$('#myframe').attr('src', 'http://example.com');
</source>
</source>



2014년 9월 12일 (금) 13:08 판

url
goto_url
location.href
Webview
WebBrowser

1 C#

webBrowser1.Url = new Uri(url1);

2 Java

2.1 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 }}