S
S'fly
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="javascript">
<!--- begin
var nifty_little_window = null;
function gateKeeper() {
nifty_little_window = window.open('gatekeep.html','theKeeper',
'width=410,height=300,resizable=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.html" is this:
<script language="JavaScript">
<!-- Begin
function goForit() {
var location;
var password;
password=this.document.testform.inputbox.value
location=password + ".html"
fetch(location)
theKeeper=window.close()
}
function fetch(location) {
var root;
if (opener.closed) {
root=window.open
('','theKeepersGopher','toolbar=yes,location=yes,status=yes,menubar=yes,
scrollbars=yes,resizable=yes,copyhistory=no');
root.location.href = 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="MyIframe">click</a> or something and
modify only the second script? Help please.
TIA
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="javascript">
<!--- begin
var nifty_little_window = null;
function gateKeeper() {
nifty_little_window = window.open('gatekeep.html','theKeeper',
'width=410,height=300,resizable=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.html" is this:
<script language="JavaScript">
<!-- Begin
function goForit() {
var location;
var password;
password=this.document.testform.inputbox.value
location=password + ".html"
fetch(location)
theKeeper=window.close()
}
function fetch(location) {
var root;
if (opener.closed) {
root=window.open
('','theKeepersGopher','toolbar=yes,location=yes,status=yes,menubar=yes,
scrollbars=yes,resizable=yes,copyhistory=no');
root.location.href = 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="MyIframe">click</a> or something and
modify only the second script? Help please.
TIA