Jump to content
Fórum Script Brasil
  • 0

Popup Com Java script e PHP

Robson lima


2 answers to this question

Recommended Posts

  • 0

Duas formas: Se você quiser que abra numa outra janela com tamanho pre-definido por vc, faça:

echo "<a href='#' onclick='window.open(\"visualizarposvenda.php?id=".$query2[0]."\",\"janela\",\"width=xxx height=xxx\");'>".$query2[1] . "</a>". "<br>";
Mas se você quiser que abra em uma outra página de tamanho padrão, simplesmente faça:
echo "<a href=visualizarposvenda.php?id=".$query2[0]." target="_blank">".$query2[1] . "</a>". "<br>";

Link to comment
Share on other sites

  • 0

Bom dia, acho que isso já resolve

echo "<a onclick=\"window.open('link_da_pagina','','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no,modal=yes,left=300,top=150, width=650, height=380');\"> clique aqui</a>    ";

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.

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
    • Total Posts
  • Create New...