Jump to content
Fórum Script Brasil
  • 0

Ao clicar no botão, abrir em outra página


ertzmanx
 Share

Question

Boa tarde, eu tenho uma página com um pop up...

e ao clicar na pop-up ele abre o link na mesma janela.... 

Porém eu gastaria que abrisse em uma nova janela... é possível ??

Meu código...

<div style='display:none' mobile='no'>
<div id='subscribe' mobile='no'>
<div id="position"><iframe style="border:none; overflow:hidden; width:680px; height:250px;" frameborder="0" scrolling="No" src="http://xxxxxxxxx.xxx" onclick="window.open(this.getAttribute(document.getElementByID('lightboxContent').style.display='none';), '_blank')"></iframe></div>


<div id="lightbox"></div>
<div id="lightboxContent"><div id="curtir"><iframe src="http://xxxxxx.xxxxx.xxxxx;width=315&amp;colorscheme=light&amp;show_faces=true&amp;border_color=%23ffffff&amp;stream=false&amp;header=false&amp;height=290" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:315px; height:290px;" allowtransparency="true" onclick="window.open(this.getAttribute(document.getElementByID('lightboxContent').style.display='none';), '_blank');"></iframe><div id="fechar" onclick="window.open(this.getAttribute(document.getElementByID('lightboxContent').style.display='none';), '_blank')">Clique no X para fechar!</div></div></div>

 

 

já estou usando o window.open mas creio que de forma errada.. poderiam me ajudar?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Forum Statistics

    • Total Topics
      149.6k
    • Total Posts
      646.2k
×
×
  • Create New...