decodeURI

URLデコード

構文

decodeURI(string)

引数

string=文字列

例文

<html>
<head>
<title>decodeURI</title>
</head>

<body>

<!--URLデコードのサンプル-->
<script type="text/javascript">
var test1="http://www.yahoo.co.jp/";
document.write(encodeURI(test1)+"<br>");
document.write(decodeURI(test1));
</script>

</body>
</html>

関連記事

スポンサーリンク

南極というイメージのペンギンですが、実は、、、

ホームページ製作・web系アプリ系の製作案件募集中です。

上に戻る