link through a <a> to a popup

Asked

Viewed 38 times

0

Hello

I wish someone would help me tell me how I can create a <a> and through it lead to a pop-up created on a site other than my own.

So far I have this code:

 <h5 id="denuncia">Caso saiba de algum caso de violencia doméstica
  <a href="https://www.cmjornal.pt/mais-cm/eu-reporter-cm?ref=geral_MenuHeader" class="denunciastyle" target="_blank">denuncie aqui</a>
  </h5> 

and I wanted through that link to take to this popup:

inserir a descrição da imagem aqui

and not for the site that later has a button for popup, thank those who try to help me.

  • Dude is hard to understand what you want.... You need to click on the page open a Popup? Or on the page has a link that when you click should open a Popup?

  • @hugocsl I think he wants a modal with an iframe, and in the iframe the src of another site shown in the href of <a> above

  • basically by clicking on <a> open the site already with the pop-up open.

  • @Sam In this case I think it would be better to put a btn over the iframe, something that Google considers as Blackhat, because I believe he can not insert a link inside the iframe...

  • I could not understand very well what you need, you do not want to leave the page to display the link page?

  • can do this using window.open

  • I don’t know how to explain myself better basically that’s all I needed to know, I tried to put in the href of the <a> the link of the other site but it doesn’t open the pop-up because to open this pop-up and I need to click the button that is on the site and what I want is to avoid the click and yes lead straight to the pop-up

  • 1

    From what I understand, you want to open the modal of another site within your site, I believe that just to do this, if the other site is yours too, then you can create a route to return only the modal and call it on your site with Jquery....

  • @Alissonmarqui that’s what I want to do! but I need to have access tbm to the other site? isn’t there a pop-up http? that I can link to?

  • 2

    @Davidmv From what I saw of the site in question (https://www.cmjornal.pt) it does not have a link to the pop-up only, it is loaded along with the full page...

  • @Alissonmarqui OK! thanks for the help! from all inclusive!

  • @Davidmv Which url accesses this pop-Pup?

  • @Magichat link this is the main site and clicking the Verd button will lead to the pop-up

  • What you really need is a modal with the components organized inside. uses bootstrap in the project?

Show 9 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.