Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 06-01-2004, 09:42 AM   #1
MaDalton
I am Amazing Content!
 
MaDalton's Avatar
 
Industry Role:
Join Date: Feb 2004
Posts: 39,829
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!
MaDalton is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-01-2004, 10:02 AM   #2
broke
Confirmed User
 
Join Date: Aug 2003
Location: Someplace Windy
Posts: 4,501
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.
broke is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-01-2004, 10:27 AM   #3
MaDalton
I am Amazing Content!
 
MaDalton's Avatar
 
Industry Role:
Join Date: Feb 2004
Posts: 39,829
hmmm, my problem is, that I got 2 links in the popup which should open different pages in the original window....
MaDalton is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-01-2004, 11:34 AM   #4
MaDalton
I am Amazing Content!
 
MaDalton's Avatar
 
Industry Role:
Join Date: Feb 2004
Posts: 39,829
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 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-01-2004, 11:35 AM   #5
MaDalton
I am Amazing Content!
 
MaDalton's Avatar
 
Industry Role:
Join Date: Feb 2004
Posts: 39,829
hahaha = s.c.r.i.p.t *sigh
MaDalton is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.