PDA

View Full Version : New window help



viktor
06-01-2005, 06:15 PM
<script>
document.getElementsByTagName('td')[5].innerHTML = document.getElementsByTagName('td')[5].innerHTML + ' <a href="http://viktorix.hyperboards3.com/index.cgi?action=pm_view " title="Check your mail. Opens new window." target="_blank"><img onmouseover=\"this.className=\'normal\'\" onmouseout=\"this.className=\'tdicons\'\" class=tdicons src="http://home.ripway.com/2005-5/316598/gr_mail.GIF" border="0" alt="Private Messages"/></a>';
</script>
I want this window to be open in specified width and height (ex:500x500).
I tried adding width and height but it didn't work. Any help guys?


Visit my "almost finished" site. Viktorix Database (http://www.viktorixdatabase.tk/)

jscheuer1
06-01-2005, 08:10 PM
Try:


<script>
document.getElementsByTagName('td')[5].innerHTML = document.getElementsByTagName('td')[5].innerHTML + ' <a href="#" title="Check your mail. Opens new window." onclick="window.open(\'http://viktorix.hyperboards3.com/index.cgi?action=pm_view\',\'mailWin\',\'width=500, height=500\');return false"><img onmouseover=\"this.className=\'normal\'\" onmouseout=\"this.className=\'tdicons\'\" class=tdicons src="http://home.ripway.com/2005-5/316598/gr_mail.GIF" border="0" alt="Private Messages"/></a>';
</script>Dimensions of new window highlighted red.