Hi All,
Can any body suggest or share code for following scenario:

- In a php file I am getting some message.
- once the message arrives it should popup a dialog or window with the message.
- if poped up is an window it should not have close button on top right corner of the window.

Thanks in advance...

I could able to open the window and pass the message.

Please check the below code"
$message = "Hello How are you";
echo "<a href=\"javascript:window.open('mano.php?param1=$message ','name1','height=500,width=500');\">Click Here To release</a>";

One issue currently I am facing is when I click on the link "Click Here To release" it opens the window but the previous page becomes blank with white background and with text [object].

I need to keep the previous page as it is and the popup should come up.

Can you please let me know the solution.


  print "<a href='pen1.php?param=$message'   


  print $m;

It is really helpful to me.Could you please let me know how to make the pen1.php window size fixed and not resizable.

Thanks in advance.

<script type="text/javascript">
   function doit(msg) {
       open("pen1.php?param=" + msg,"_blank","left=100,top=100,width=200,height=200");
  print "<a href=\"javascript:doit('$message');\">See</a>";

Thanks for your reply.
when I write the following code in a '<?php ?> ' tag it shows again an error [object] in original page and new popup comes up.

print "<a href='releasetype.php?param1=$JobName1?paramMessg=$message','height=500,width=500' target='blank'>Click Here</a>";

kindly suggest what modification I should do to above code so that first page should remain intact and new dialog with fixed size should popup.

This article has been dead for over six months. Start a new discussion instead.