View Full Version : pop new window
chronic
04-09-2007, 05:55 PM
i need to make a pop window for my site but i also want that if i press a link on that pop window, the link goes in the main page and not another window
mburt
04-09-2007, 06:18 PM
<a href="mypage.htm" onclick="window.open('mypop-up.htm')">Popup/Redirect</a>
Or the equivalent, without the main page re-direct (w/o JavaScript):
<a href="mypop-up.htm" target="_blank">Popup</a>
killerchutney
04-09-2007, 06:57 PM
why is this in the flash category? use
getURL('pageURLhere', new
for flash (i think)
mburt
04-09-2007, 08:16 PM
You're missing a right bracket there. ;)
killerchutney
04-10-2007, 12:04 PM
so i am. Im also missing a ;
jscheuer1
04-10-2007, 12:20 PM
i need to make a pop window for my site but i also want that if i press a link on that pop window, the link goes in the main page and not another window
If the main page's window has a name, you can target it. To give a page a name:
<script type="text/javascript">
window.name='some_name';
</script>
To target it from a link:
<a href="whatever.htm" onclick="window.open(this.href,'some_name');return false;">Link Text</a>
why is this in the flash category? use
getURL('pageURLhere', new
for flash (i think)
Because it is code that is used to write Active Script, not javascript. Active Script is the language from which Flash is compiled.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.