Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

95
Visualizações
Trying to Pass Information Into Link From Current URL

Good evening.

I don't know much about programming, nor programming language, so bear with me.

I am attempting to create a page with a link that contains a pre-made url, but adds dynamic information from the url of the current page.

Thus, when they land on such a page, there will be an href link ("www.pre-determined-url.com/"), and from the page's current url will be obtained appropriate information (in which there is a code "?code=dynamic_information").

I have been using dynamic information from gravity forms and javascript (which might not work together), and below is the code I have been using in html:

<a href="" id="sp_link" dir="rtl" style="display: inline-block; text-decoration: none;" target="_blank" rel="noopener">

Link to other page with content gained from url</a>

<script>
    window.onload = function() {
        sp_link.href ='www.pre-determined-url.com/' + [?code=dynamic_information]; 
      
        
    }  
</script> 

The current url would be something like "www.current-page.com/?code=information", and the "?code" information would go into the javascript's href.

I thank you in advance for any help and patience.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda