|
-
Oct 14th, 2001, 11:33 AM
#1
Thread Starter
Fanatic Member
i need i.e. javascript code to make a button and input box and then send the...
I need a example in javascript to display a button and input box on a webpage and then have the internet explorer navigate to a set webpage plus the contents of the input box. for example the user types in the word hello in the input box and then clicks the button. then the internet explorer goes to url http://www.flamewavetech.com/hello
how would i do this?
all help is appreciated.
-
Oct 14th, 2001, 11:35 AM
#2
Member
-
Oct 14th, 2001, 11:35 AM
#3
PowerPoster
Perhaps you should post in the javascript forum then...?
-
Oct 14th, 2001, 11:36 AM
#4
Thread Starter
Fanatic Member
the code needs to be in javascript so i could put it in the html for a website.
-
Oct 14th, 2001, 11:36 AM
#5
Thread Starter
Fanatic Member
i get much quicker responses here than in other forums.
-
Oct 14th, 2001, 11:37 AM
#6
Member
I'll be nice and not harrass you about being in the wrong forum. 
Code:
window.location = "http://www.flamewavetech.com/" + prompt("URL base?")
I think.
-
Oct 14th, 2001, 11:40 AM
#7
Thread Starter
Fanatic Member
ye i tried this but when i clicked the button nothing happened.
<html>
<body>
<SCRIPT>
function submiturl(field) {
window.location = "http://www.google.com" + FORM.label.value;
}
</SCRIPT>
<FORM>
<INPUT TYPE=text NAME="label" VALUE='' SIZE=20>
<input type=button value='Search' onClick="submiturl"(document.this)">
</FORM>
</body>
</html>
-
Oct 14th, 2001, 11:41 AM
#8
Member
onClick="submiturl"(document.this)">
should be
onClick="submiturl(document.this);">
-
Oct 14th, 2001, 11:45 AM
#9
PowerPoster
Originally posted by flamewavetech
i get much quicker responses here than in other forums.
that's no excuse now is it. Be patient
-
Oct 14th, 2001, 11:48 AM
#10
Thread Starter
Fanatic Member
k i made the change u said and now it says a runtime error occured.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|