![]() |
Help: Quick jscript button tweak
Hey script kiddies, I need a little assistance here. I am having a complete brain fart on getting this button done. It is a simple username entry field and a submit button, and then the onClick passes the entered text to the end of the url string for the new window the button opens.
Any help would be much appreciated. |
no takers?
|
using a method="GET" on the form will pass the form fields in the query string
does that deserve a " I <3 Amateur Series! " fansign? :pimp |
Quote:
|
no onClick handling needed if i'm understanding what you want correctly
|
here you go
HEAD: <script language="JavaScript"> function openwin() { var arg = document.thisform.username.value; var url = 'http://www.yourdomain.com/'+ arg; window.open(url, 'mywindow', 'width=400,height=200,toolbar=yes,location=yes,dir ectories=yes,status=yes,menubar=yes,scrollbars=yes ,copyhistory=yes,resizable=yes'); } </script> ---- BODY: <form name=thisform> <input id=text type=text name=username value=""> <input type="Button" name=submit value=enter onclick="openwin();"> </form> |
not sure what you want then
|
Quote:
|
PS in the input tag no need for id argument ;)
|
Quote:
|
Quote:
8chars |
Quote:
|
Quote:
I'm not. ;) |
Quote:
Hit me up if you need anything else, i'm not a pro but i know few things here and there :) |
Quote:
What can I say... I wanted to be your "HERO" :pimp |
Quote:
|
Quote:
Is that a six digit ICQ number? Dude. :) |
Quote:
|
| All times are GMT -7. The time now is 03:52 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123