search
CGIに渡される文字列を参照/設定します。?の文字を含むURLパラメータになります。
構文
リンクオブジェクト.search
例文
<html> <head> <title>search</title> <script type="text/javascript"><!-- window.onload = function() { var txt = document.links[0].search; document.getElementById("result").innerHTML = txt; } // --></script> </head> <body> <ul> <li><a href="http://www.openspc2.org:8080/index.cgi?cache=123">OpenSpace</a> </ul> <div id="result"></div> </body> </html>
関連記事
スポンサーリンク