...

View Full Version : Pop Up window help



derbra1513
10-12-2006, 04:09 PM
Hi all, im having a problem. I have two diffrent links that i want to open in two popup windows one a normal window size popup and the secound 100 by 200. Is this at all possible? Here is what i have so far

<code><script type="text/javascript">

function twoWindows (one,two) {
window.open(one);
window.open(two);
}
</code>

<code><body>
<a href="http://nucrisp.com/home.html" onclick="twoWindows('http://www.apparelcatalog.net/asi/','http://nucrisp.com/Untitled.html'); return false">hi</a>
</body></code>

Mr J
10-12-2006, 04:47 PM
You could do it this way



<script type="text/javascript">
<!--
function twoWindows(url){
var newWin=open(url,'win1','left=200,top=200,width=100,height=200')
}
// -->
</script>

<a href="http://nucrisp.com/home.html" target="_blank" onclick="twoWindows('http://www.apparelcatalog.net/asi/')">hi</a>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum