Forum Moderators: coopster

Message Too Old, No Replies

pop up window when some one click on the links

         

suresheva31

6:07 pm on Sep 21, 2004 (gmt 0)

10+ Year Member



Hey guys,

I gotta another question with same sample code.
How do I make the window pop up, when some one click on the link, and display the data on that pop up window

echo "<td class = h9>";
$ra = OCIResult($stmt, "RADIOADDRESS");
echo "<a href='/etr2/poppinlist.php' class =h9>".strtoupper(dechex($ra)). "</a>";
echo "</td> ";

Suresh

jatar_k

6:19 pm on Sep 21, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



echo "<a href='/etr2/poppinlist.php' class =h9 target='_new'>".strtoupper(dechex($ra)). "</a>";

that will open it in a new window. If you want to control the new window size etc, use javascript to open it.

httpwebwitch

8:22 pm on Sep 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



did you know:

you can open a new window and write things into it from the parent page.


<script>
function openwin(){
windowHandle = window.open("","mywin","toolbars=no");
windowHandle.document.write("hello world!");
}
</script>
<a href="javascript:openwin()">click me</a>