Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
Only fixed formatting and capitalization. The grammar is incomprehensible...
Source Link
Mr. Polywhirl
  • 49.1k
  • 12
  • 96
  • 147

i I want to insert input values to link

iI have to link three input values to the link  .how i How I can do in easy way and iI click the link iI want open the urlURL.

<script type="text/javascript"> function changeText2(){ var userInput0 = document.getElementById('userInput').value; var userInput11 = document.getElementById('userInput').value; var userInput21 = document.getElementById('userInput2').value; document.write("userinput"); } </script> Here is a link : <a href="/00ON0000000FOHS?pc0=userInput0&pn0=userInput11&pv0=userInput21" >nothing here yet</a> <br/> <input type='text' id='userInput' value='Enter Search String Here' /> <input type='text' id='userInput1' value='Enter Text Here' /> <input type='text' id='userInput2' value='Enter Text Here' /> <input type='button' onclick='changeText2()' value='Change Link'/> </html> 
<html> <script type="text/javascript"> function changeText2(){ var userInput0 = document.getElementById('userInput').value; var userInput11 = document.getElementById('userInput').value; var userInput21 = document.getElementById('userInput2').value; document.write("userinput"); } </script> Here is a link : <a href="/00ON0000000FOHS?pc0=userInput0&pn0=userInput11&pv0=userInput21" >nothing here yet</a> <br/> <input type='text' id='userInput' value='Enter Search String Here' /> <input type='text' id='userInput1' value='Enter Text Here' /> <input type='text' id='userInput2' value='Enter Text Here' /> <input type='button' onclick='changeText2()' value='Change Link'/> </html> 

i want to insert input values to link

i have to link three input values to the link  .how i can do in easy way and i click the link i want open the url

<script type="text/javascript"> function changeText2(){ var userInput0 = document.getElementById('userInput').value; var userInput11 = document.getElementById('userInput').value; var userInput21 = document.getElementById('userInput2').value; document.write("userinput"); } </script> Here is a link : <a href="/00ON0000000FOHS?pc0=userInput0&pn0=userInput11&pv0=userInput21" >nothing here yet</a> <br/> <input type='text' id='userInput' value='Enter Search String Here' /> <input type='text' id='userInput1' value='Enter Text Here' /> <input type='text' id='userInput2' value='Enter Text Here' /> <input type='button' onclick='changeText2()' value='Change Link'/> </html> 

I want to insert input values to link

I have to link three input values to the link. How I can do in easy way and I click the link I want open the URL.

<html> <script type="text/javascript"> function changeText2(){ var userInput0 = document.getElementById('userInput').value; var userInput11 = document.getElementById('userInput').value; var userInput21 = document.getElementById('userInput2').value; document.write("userinput"); } </script> Here is a link : <a href="/00ON0000000FOHS?pc0=userInput0&pn0=userInput11&pv0=userInput21" >nothing here yet</a> <br/> <input type='text' id='userInput' value='Enter Search String Here' /> <input type='text' id='userInput1' value='Enter Text Here' /> <input type='text' id='userInput2' value='Enter Text Here' /> <input type='button' onclick='changeText2()' value='Change Link'/> </html> 
Source Link
tejdeep
  • 115
  • 1
  • 11

i want to insert input values to link

i have to link three input values to the link .how i can do in easy way and i click the link i want open the url

<script type="text/javascript"> function changeText2(){ var userInput0 = document.getElementById('userInput').value; var userInput11 = document.getElementById('userInput').value; var userInput21 = document.getElementById('userInput2').value; document.write("userinput"); } </script> Here is a link : <a href="/00ON0000000FOHS?pc0=userInput0&pn0=userInput11&pv0=userInput21" >nothing here yet</a> <br/> <input type='text' id='userInput' value='Enter Search String Here' /> <input type='text' id='userInput1' value='Enter Text Here' /> <input type='text' id='userInput2' value='Enter Text Here' /> <input type='button' onclick='changeText2()' value='Change Link'/> </html>