inputでアドレスを飛ばしたいのですが。
-
0 名前: enngawa : 2007/05/28(月) 12:50 ID:GGZKxCql sub-t1
- <a href="http://XXXXXX.jp/[ページID]" target="_self"><font size="4">飛びます</font></a>
[ ]の部分にページIDを直接入力して「飛びます」を押したときに入力したIDに飛ばすにはどうすればいいでしょうか。
-
1 名前: 匿名 : 2007/05/28(月) 12:50 ID:PISglGMa sub-Cl
- すみませんが、何をどうしたいのか良く伝わってこないのですが・・・
-
2 名前: enngawa : 2007/05/28(月) 12:50 [URL] ID:GGZKxCql sub-t1
- http://www.geocities.jp/silentfit/test.html
にそれっぽいの作ってみました
-
3 名前: ホホ : 2007/05/28(月) 12:50 ID:EnXknMbG sub-t1
- <script type="text/javascript">
<!--
function myjumplink(){
var myword = document.f1.b1.value;
location.href="http://" + myword + "/";
}
//-->
</script>
<form name="f1">
http://xxxxxxxx/
<input type="text" size="40" name="b1">/
<input type="button" value="飛びます" onclick="myjumplink()">
</form>
-
4 名前: ホホ : 2007/05/28(月) 12:50 ID:EnXknMbG sub-t1
- location.href="http://xxxxxxxx/" + myword + "/";
だった、、
てか、javascript使わずにっていう質問だったのかな
-
5 名前: enngawa : 2007/05/28(月) 12:50 ID:GGZKxCql sub-t1
- ありがとうございます!
参考になりました!^^ノ