GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   HTML/j.a.v.a.s.c.r.i.p.t question for popups - help appreciated! (https://gfy.com/showthread.php?t=305301)

MaDalton 06-01-2004 09:42 AM

HTML/j.a.v.a.s.c.r.i.p.t question for popups - help appreciated!
 
Hi!

A short question for all the coding cracks:

On a HTML page a link opens a popup with "j.a.v.a.s.c.r.i.p.t:popup...". In this popup a link is shown which should open a new site in the original window with the popup link and not in a new window. How can I do it?

Thanks a lot!

broke 06-01-2004 10:02 AM

Code:


<script language="JavaScript">

<!--

function pop_and_change()

{

window.open('pop_up_url.htm','myWindow');
window.location.href = "page_in_main_window_url.htm";

}

-->

</script>


Link code:

<a href="javascript:;" onclick="pop_and_change()">



The haha123; should be a left curly brace.

MaDalton 06-01-2004 10:27 AM

hmmm, my problem is, that I got 2 links in the popup which should open different pages in the original window.... :helpme

MaDalton 06-01-2004 11:34 AM

ok, I got it:

Quote:

hahahahahahahaha type="text/J_avaScript">
var URL;
function openurl(URL){
parent.o_pener.top.location.href = URL;
}
</hahahahahahahaha

link: <a href="j_avascript:openurl('blabla.htm');self.close ();">click here!</a>


MaDalton 06-01-2004 11:35 AM

hahaha = s.c.r.i.p.t *sigh


All times are GMT -7. The time now is 08:17 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123