encodeURI
URLエンコード
構文
encodeURI(string)
引数
string=文字列例文
<html>
<head>
<title>encodeURI</title>
</head>
<body>
<!--URLエンコードのサンプル-->
<script type="text/javascript">
document.write(encodeURI("http://www.yahoo.co.jp/")+ "<br>");
document.write(encodeURI("&/?:@#=,+$"));
</script>
</body>
</html>
関連記事
スポンサーリンク





