Click here to Skip to main content
15,616,232 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Unable to pop up window for edit on PHP. Once an edit button is clicked instead of popup full window is shown. Here is the code which is giving undesired output.

function appup(fid) {
  var url = "edit.php?id="+fid;

  newwindow =,'name','height=480,width=480, scrollbars=yes');
  if (window.focus) { newwindow.focus() }
  return false;

Now the output is here

<div align="center"><a href="edit.php?Edit=<?php echo $rows[">&pid=' >Edit</a></div>What I have tried:

i tried to  use onclick="return appup() to achieve results
Updated 8-Sep-20 5:20am

1 solution

If you must pop up a new page, look into <iframe> which can be sized and built into your page (or hidden) as needed.

I'd not do it that way - I'd more likely pop up either an element of <div> containing element an element for the type of input I want.

Remember - most browsers have popup blockers !
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900