Search result open in new tab

1

I have a simple search engine that does the html search itself, how can I make the search results show up in a new tab?

<input type="text" placeholder="Digite sua pergunta"  autofocus name="query" size="16" style="font-size: 11 pt; color: #000000; font-family: Verdana; font-variant: small-; border: 1 solid #000000">
</font></font> <font face="Verdana, Arial, Helvetica, sans-serif" size="2"> 
<input  type="submit" value="Buscar" style="font-size: 8 pt; color: #000000; font-family: Verdana; font-variant: small-caps; border: 1 solid #000000">

Search Engine link

    
asked by anonymous 16.04.2018 / 15:20

2 answers

1

You can add an attribute in the so-called "target",

would look like this:

<form action="" method="GET" target="_blank">
...
</form>

More information on the > link

att,

    
16.04.2018 / 15:53
1

I do not know if it helps you but you can do it like this:

You have to figure out a way to get what is typed inside the input name="query" and put it at the end of the query= link

<input onclick="myFunction()" type="submit" value="Buscar" style="">

<script>
function myFunction() {
    window.open("http://leituracrista.com/indice/?query=.....");
}
</script>

I know it's not the "full" answer but sometimes it helps. With jQuery I believe that you easily capture the value of input of search and places it where you want. But it's not very much my area so I will not extend myself.

    
16.04.2018 / 16:04