hi,
i would like to refer to this thread http://www.codingforum.net/showthrea...=&threadid=470
i modified the cool code by ACJavascript a bit. here's how it looks now:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<title></title>
</head>
<body>
<script language="javascript">
function go(){
var lg=window.open("page1.htm","GoPage")
document.forms[0].goTrue.value="true"
}
function check(){
if(document.forms[0].goTrue.value=="true"){
self.location="index.htm"
}else{
alert("Please click 'GO Here' first.")
}
}
</script>
<a href="javascript:go()">GO Here</a>
<form>
<input type="hidden" name="goTrue">
</form>
<a href="javascript:check()">Click here</a>
</body>
</html>
the thing i want is for the check() function to check if the visitor is on page2.htm in the GoPage window (he would have to click on page1.htm which is opened by the go() function). is it possible to at all (i assume the script above will need a grand remake)
i would like to refer to this thread http://www.codingforum.net/showthrea...=&threadid=470
i modified the cool code by ACJavascript a bit. here's how it looks now:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<title></title>
</head>
<body>
<script language="javascript">
function go(){
var lg=window.open("page1.htm","GoPage")
document.forms[0].goTrue.value="true"
}
function check(){
if(document.forms[0].goTrue.value=="true"){
self.location="index.htm"
}else{
alert("Please click 'GO Here' first.")
}
}
</script>
<a href="javascript:go()">GO Here</a>
<form>
<input type="hidden" name="goTrue">
</form>
<a href="javascript:check()">Click here</a>
</body>
</html>
the thing i want is for the check() function to check if the visitor is on page2.htm in the GoPage window (he would have to click on page1.htm which is opened by the go() function). is it possible to at all (i assume the script above will need a grand remake)
Comment