• 0
Sign in to follow this  
Vilela

Abrir Janela

Question

3 answers to this question

Recommended Posts

  • 0

Use a função que está neste tópico:

http://scriptbrasil.com.br/forum/index.php...t=0entry16995

Neste caso, ela chama-se "Gerar()". Então, no link, vai ficar assim:

<a href="#" onClick="javascript:Gerar();">Link</a>

Você tem que mudar a função Gerar(), colocando o endereço da página que será aberta.

Share this post


Link to post
Share on other sites
  • 0

<script LANGUAGE="JavaScript">

<!--

function NewWindow(mypage, myname, w, h, scroll) {

var winl = (screen.width - w) / 2;

var wint = (screen.height - h) / 2;

winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'

win = window.open(mypage, myname, winprops)

if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); return false;}

return false;}

//-->

</script>

<a href="mostraid.php?action=propid" onclick="NewWindow(this.href,'name','400','400','no');">

porque ele abre a janela e o link na janela original???? queria que abrisse só a pop up

Share this post


Link to post
Share on other sites

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.

Sign in to follow this