|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Hi,I have around a hundred html files, named 1.htm, 2.htm, 3.htm and so on...
Now i want a search text box, like for example, the user types "1" in the input box and clicks on submit, 1.htm loads in the window... or in another target window. I tried passing the value to the top, but i do not know how to add ".htm" to the end of the file name and i do not want the person to type it either. Can you help me? PS:- What i am asking is similar to google etc. You enter a search term Ex. "ball" and the next page is of the type, google.com?q=ball&lan=en& Here you can see that the user input- "ball" was inserted between the other two data, google.com and lan=en&. Similarly, I am in the need, but i just dont know how to go about it. Mine will be like mydomain.com/userinput.htm where the useriput is generated inside the link. Thank you. |
|
#2
|
||||
|
||||
|
Try using this Javascript - when the user presses the button (trigger using onclick event)
Code:
function go() {
varUserValue = document.frmName.textbox.value
document.location.href = varUserValue + '.htm'
}
|
|
#3
|
|||
|
|||
|
Was really helpful... thanx a lot and apologies for replying so late...
Bye.. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > Link Generator |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|