Ask Question Forum:
C
O
M
P
U
T
E
R
2
8
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Y-position of the mouse cursor
Attachment:===
input box value to change URL or href link in html

link href or URL according to the input number change in html. How to change URL from input box with enter keys
and with submit button. Hope you can provide two method simple code.
Frr example, if I input product no=666789 , the href link will go to web search
http://www.mywbsite.com/666789.htm
Please advise
Duncan
*********< input product number and press enter key to change href link<html><body><form method="get" action="http:/www.mywebsite.com/#myvariable#.htm">ProductNO: <input type="text" name="myvariable" value=""></form></body></html>************************************************<-Click input product no and click submit button to change href<html><body><form method="get" action="http:/www.mywebsite.com/#myvariable#.htm">ProductNO: <input type="text" name="myvariable" value=""><input type="submit" value="Submit"></form></body></html>
1:2:3:4:5:6:7:8:9:10:11:12:13:14:15:16:17:18:19:
THanks, sam2912, it works finally
with your code.
Thanks for all of you to reply this thread
THanks, sam2912, it works finally
with your code.
Thanks for all of you to reply this thread
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Change URL via Textbox</title></head><body><form method="post" onsubmit="window.location='http://www.mywebsite.com/'+this.prodNum.value+'.htm';return false;"> <input type="text" name="prodNum" /> <input type="submit" name="submit" value="Submit" /></form></body></html>
1:2:3:4:5:6:7:8:9:10:11:12:13:
THanks, sam2912, it works finally
with your code.
Thanks for all of you to reply this thread
THanks, sam2912, it works finally
with your code.
Thanks for all of you to reply this thread
THanks, sam2912, it works finally
with your code.
Thanks for all of you to reply this thread
THanks, sam2912, it works finally
with your code.
Thanks for all of you to reply this thread
THanks, sam2912, it works finally
with your code.
Thanks for all of you to reply this thread
THanks, sam2912, it works finally
with your code.
Thanks for all of you to reply this thread