Hi,
I'm struggling with the famous "gatekeeper " a little. Normally, it opens
in a popup window, and from there it goes on. But I like this script to
open in an iframe, and not in a popup. It opens with a link.
This is in the main page (where also the iframe):
<script language="javas cript">
<!--- begin
var nifty_little_wi ndow = null;
function gateKeeper() {
nifty_little_wi ndow = window.open('ga tekeep.html','t heKeeper',
'width=410,heig ht=300,resizabl e=0,left=0,top= 0')
}
// end --->
</script>
So this one opens a popup of course. How to change this so it will open
inside an iframe?
The "gatekeep.h tml" is this:
<script language="JavaS cript">
<!-- Begin
function goForit() {
var location;
var password;
password=this.d ocument.testfor m.inputbox.valu e
location=passwo rd + ".html"
fetch(location)
theKeeper=windo w.close()
}
function fetch(location) {
var root;
if (opener.closed) {
root=window.ope n
('','theKeepers Gopher','toolba r=yes,location= yes,status=yes, menubar=yes,
scrollbars=yes, resizable=yes,c opyhistory=no') ;
root.location.h ref = location;
} else {
opener.location .href = location;
}
}
// End hiding -->
</script>
Is there any way to point the first script to an iframe? It's driving me
nuts! Or should I directly point the second script to the iframe, like
<a href="gatekeep. html" target="MyIfram e">click</a> or something and
modify only the second script? Help please. :)
TIA
--
S'fly
I'm struggling with the famous "gatekeeper " a little. Normally, it opens
in a popup window, and from there it goes on. But I like this script to
open in an iframe, and not in a popup. It opens with a link.
This is in the main page (where also the iframe):
<script language="javas cript">
<!--- begin
var nifty_little_wi ndow = null;
function gateKeeper() {
nifty_little_wi ndow = window.open('ga tekeep.html','t heKeeper',
'width=410,heig ht=300,resizabl e=0,left=0,top= 0')
}
// end --->
</script>
So this one opens a popup of course. How to change this so it will open
inside an iframe?
The "gatekeep.h tml" is this:
<script language="JavaS cript">
<!-- Begin
function goForit() {
var location;
var password;
password=this.d ocument.testfor m.inputbox.valu e
location=passwo rd + ".html"
fetch(location)
theKeeper=windo w.close()
}
function fetch(location) {
var root;
if (opener.closed) {
root=window.ope n
('','theKeepers Gopher','toolba r=yes,location= yes,status=yes, menubar=yes,
scrollbars=yes, resizable=yes,c opyhistory=no') ;
root.location.h ref = location;
} else {
opener.location .href = location;
}
}
// End hiding -->
</script>
Is there any way to point the first script to an iframe? It's driving me
nuts! Or should I directly point the second script to the iframe, like
<a href="gatekeep. html" target="MyIfram e">click</a> or something and
modify only the second script? Help please. :)
TIA
--
S'fly
Comment