decodeURIComponent

URLデコード

構文

decodeURIComponent(URIstring)

引数

URIstring=文字列

例文

<html>
<head>
<title>decodeURIComponent</title>
</head>

<body>

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

</body>
</html>

関連記事

スポンサーリンク

head要素のchildNodes.item(0)が必ずtitle要素になる

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

上に戻る