jeudi 23 avril 2020

Follow the link including the input value using two input and button tags

How to follow a link with a value in the input field without writing additional javascript, i.e. all code in html input and button tags?

Let's say there is a Google site for search and the search line is in input, so that when you click on the button, the link https://www.google.com/search?q= and the value of the input field, for example, text are substituted:

https://www.google.com/search?q=text

<input type="text" id="search" name="search" value="text">
<button onclick="code">Follow a search link with a value in input</button>



Aucun commentaire:

Enregistrer un commentaire