• 0
Sign in to follow this  
Miranda

Popup

Question

function openUrl(URL,w,h) {

x=(screen.width/2)-(w/2);//distancia da margem esquerda da tela;

y=(screen.height/2)-(h/2);//distancia da margem superior da tela;

window.open(URL,'left='+x+',top='+y+',width='+w+',height='+h+'');

}

echo "&nbsp; <a href=\"javascript: openUrl('cliente.php?id=$id','200',300')\">» $nome [$dominio]</a><br>";

Não ta funcionando sad.gif

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Cara, o único erro que aparece aqui pra mim, é a falta das variáveis: id, nome e dominio.

Ou você passa o código completo, ou se quiser eu mando pra seção de php.

falou.

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