I had make a php link but i want it to open in a specific size in a new window.Can anyone from here suggest anything?The link is an image.
echo \"&
-
To open in a new window, you have to add target to your a tag, eg:
<a href="http://example.com" target="_blank">Example Link</a>
To configure the size it's opened at, afaik you'd have to use javascript,
<a href="http://example.com" onclick="window.open(this.href, '_blank', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;">Example Link</a>
Here's a JS Fiddle
讨论(0)
-
I tried above code, but doesn't work. Instead of "_blank", I used "new"
echo '<a href="www.google.com" target="new" > <img src="small.jpg"></a></div>';
I'm not very sure about the quote. You may test out.
讨论(0)
-
Try this
echo "<td><center><a target='_blank' href=\"edituser.php?id=$row[id]\"><img src=image/edit.png></a></center></td>";
讨论(0)
-
This should open it in a new window:
<a target="_blank" href=\"edituser.php?id=$row[id]\"><img width="200" height="150" src=image/edit.png></a>
you can add "width" and "height" attributes to the "img" tag.
讨论(0)
- 热议问题