Jump to content
Fórum Script Brasil
  • 0

Posição Xy De Janela Pop-up


noberto

Question

4 answers to this question

Recommended Posts

  • 0

pode sim cara.

veja:

<script language="JavaScript">
Function janelanova(theURL,winName,features)
{
window.open(theURL,winName,features);
}
</script>
O features serve para voce botar o tamanho, se tem barra de rolagem, etc. Ai lá no link voce bota assim:
<a href="página1.html" onclick="janelanova('endereço.html','Titulo da página','width=200,height=300,top=10,left=40')">Link 1</a>

Espeto ter te ajudado

Abraços

Rodrigo

Link to comment
Share on other sites

  • 0

Só lembrando um negócio...

O código do Aragorn13 tá ok...Mas ele esqueceu de especificar...

<a href="página1.html" onclick="janelanova('endereço.html','Titulo da página','width=200,height=300,[b]top[/b]=10,[b]left[/b]=40')">Link 1</a>

top - distancia do topo

left - distancia da esquerda

Abraços

Link to comment
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.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652.1k
×
×
  • Create New...