"Drisco" <db******@hotmail.com> wrote in message
news:11*********************@g44g2000cwa.googlegro ups.com...
First, thanks for the reply, and sorry about the munging :)
I pasted the exact link bellow that I have currently on my table. It
works as expected, but I need to have the target window come up with a
certain size, no address bar, and no scrolls etc..
<a href="video_pop.php?GenderID=*<?php echo
$row_rs_Gender['GenderID']; ?> " target="_blank"class="centerTa*ble">
<img src="<?php echo $row_rs_Gender['Pic1']; ?>" border="0"></a>
Use:
<a href="..."
target="..."
class="..."
onclick="return openWindow(this);"
...</a>
<script type="text/javascript">
function openWindow(lnk)
{
window.open(
lnk.href,
lnk.target,
'...attributes...'
);
return false;
}
</script>
....attributes... can be anything documented:
<url:
http://docs.sun.com/source/816-6408-...ow.htm#1202731 />
<url:
http://www.mozilla.org/docs/dom/domr...6.html#1019331 />
<url:
http://msdn.microsoft.com/workshop/a...ods/open_1.asp
/>
Note that some popup blockers will block this script. Then again, you
can configure Gecko-based browsers to ignore <A ... TARGET="..."> as
well, so you're not going be guarantee to see any behaviour you expect
when attempting to open a new browser window on the visitor's computer.
--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ -
http://jibbering.com/faq