I am using Joomla JEA component, and when click ad page. i need that the page would load in to the new window. How to do that ? Please help me
here is code
<?php if ($imgUrl = $this->getFirstImageUrl($row)): ?>
<dt class="image">
<a onclick="myFunction()" href="<?php echo JRoute::_('index.php?option=com_jea&view=property&id='. $row->slug) ?>" title="<?php echo JText::_('COM_JEA_DETAIL') ?>">
<img onclick="myFunction()" src="<?php echo $imgUrl ?>" alt="<?php echo JText::_('COM_JEA_DETAIL') ?>" /></a>
</dt>
<?php endif ?>
<script>
function myFunction() {
var myWindow = window.open("", "MsgWindow", "width=200, height=100");
}
</script>