Is there a script that sends the value of my input to the page input I open?
As the example below shows, I need to send the value "12345" to the XYZ page input as soon as I click on the link to open it, to speed up the search by code.
My site:
<div>
<a href="www.paginaxyz.com.br">Consultar</a>
<input id="CodigoConsulta" type="hidden" value="12345" />
</div>
XYZ Page:
<div>
<label>Código: </label>
<input id="Codigo" type="text" value="" <--receber-- "12345" />
<button id="btnPesquisar" type="button">Pesquisar</button>
</div>
I tried to search for something in .js and jquery, but I can not execute the scripts because I do not have the "context" of the other page
The script I thought would look something like this:
<script>
var url = www.paginaxyz.com.br;
$(document, url).ready(function(){
$("#Codigo").val($("#CodigoConsulta").val());
});
</script>
Is it possible to do this?
Edit: * The landing page is from another company, as if I were to do an NFe query by access key, for example *