I am trying to get a redirector page to redirect or close
based on a querystring.

The redirect part is easy, and is working fine...

I now need to figure out a way to close the page as well.
I can not use <a ONCLICK="window.close()"> with a button
because the page has to close by it's self based on the
value of the querystring.

Here is what I have, any ideas on how I can close the
window based on the querystring ?

<html>
<%Language=VBScript%>
<%
GoToURL = Request.querystring("site")
parmAction = Request.querystring("action")
%>

<head>
</head>
<body>

parmAction : <% Response.Write parmAction %></br>

<% if parmAction <> "Close" Then %></br>
Waiting 10 Seconds For Testing ReDirect</br>
<meta HTTP-EQUIV="REFRESH" content='10; url=http://<%
Response.Write GoToURL%>'>
<%else%>
</br>
*****************************</br>
<%Response.Write parmAction%> Window Selected</br>
Write Code To Close Window</br>
*****************************</br>

<%end if%>
</body>
</html>

Re: window.close() No ONCLICK ? by Murray

Murray
Fri Sep 10 08:13:40 CDT 2004

<%Response.Write parmAction%> Window Selected</br>
<script type="text/javascript">self.close()</script></br>


--
Murray

"Jay Swan" <anonymous@discussions.microsoft.com> wrote in message
news:998301c49736$32ee9060$a301280a@phx.gbl...
>
> I am trying to get a redirector page to redirect or close
> based on a querystring.
>
> The redirect part is easy, and is working fine...
>
> I now need to figure out a way to close the page as well.
> I can not use <a ONCLICK="window.close()"> with a button
> because the page has to close by it's self based on the
> value of the querystring.
>
> Here is what I have, any ideas on how I can close the
> window based on the querystring ?
>
> <html>
> <%Language=VBScript%>
> <%
> GoToURL = Request.querystring("site")
> parmAction = Request.querystring("action")
> %>
>
> <head>
> </head>
> <body>
>
> parmAction : <% Response.Write parmAction %></br>
>
> <% if parmAction <> "Close" Then %></br>
> Waiting 10 Seconds For Testing ReDirect</br>
> <meta HTTP-EQUIV="REFRESH" content='10; url=http://<%
> Response.Write GoToURL%>'>
> <%else%>
> </br>
> *****************************</br>
> <%Response.Write parmAction%> Window Selected</br>
> Write Code To Close Window</br>
> *****************************</br>
>
> <%end if%>
> </body>
> </html>



Re: window.close() No ONCLICK ? by anonymous

anonymous
Fri Sep 10 08:30:22 CDT 2004

Murray:

Just what I needed...
Thanks, have a nice weekend..

Jay

>-----Original Message-----
><%Response.Write parmAction%> Window Selected</br>
><script type="text/javascript">self.close()</script></br>
>
>
>--
>Murray
>
>"Jay Swan" <anonymous@discussions.microsoft.com> wrote in
message
>news:998301c49736$32ee9060$a301280a@phx.gbl...
>>
>> I am trying to get a redirector page to redirect or
close
>> based on a querystring.
>>
>> The redirect part is easy, and is working fine...
>>
>> I now need to figure out a way to close the page as
well.
>> I can not use <a ONCLICK="window.close()"> with a button
>> because the page has to close by it's self based on the
>> value of the querystring.
>>
>> Here is what I have, any ideas on how I can close the
>> window based on the querystring ?
>>
>> <html>
>> <%Language=VBScript%>
>> <%
>> GoToURL = Request.querystring("site")
>> parmAction = Request.querystring("action")
>> %>
>>
>> <head>
>> </head>
>> <body>
>>
>> parmAction : <% Response.Write parmAction %></br>
>>
>> <% if parmAction <> "Close" Then %></br>
>> Waiting 10 Seconds For Testing ReDirect</br>
>> <meta HTTP-EQUIV="REFRESH" content='10; url=http://<%
>> Response.Write GoToURL%>'>
>> <%else%>
>> </br>
>> *****************************</br>
>> <%Response.Write parmAction%> Window Selected</br>
>> Write Code To Close Window</br>
>> *****************************</br>
>>
>> <%end if%>
>> </body>
>> </html>
>
>
>.
>

Re: window.close() No ONCLICK ? by Murray

Murray
Fri Sep 10 08:53:50 CDT 2004

You too!

--
Murray

<anonymous@discussions.microsoft.com> wrote in message
news:987101c4973a$52843570$a501280a@phx.gbl...
> Murray:
>
> Just what I needed...
> Thanks, have a nice weekend..
>
> Jay
>
>>-----Original Message-----
>><%Response.Write parmAction%> Window Selected</br>
>><script type="text/javascript">self.close()</script></br>
>>
>>
>>--
>>Murray
>>
>>"Jay Swan" <anonymous@discussions.microsoft.com> wrote in
> message
>>news:998301c49736$32ee9060$a301280a@phx.gbl...
>>>
>>> I am trying to get a redirector page to redirect or
> close
>>> based on a querystring.
>>>
>>> The redirect part is easy, and is working fine...
>>>
>>> I now need to figure out a way to close the page as
> well.
>>> I can not use <a ONCLICK="window.close()"> with a button
>>> because the page has to close by it's self based on the
>>> value of the querystring.
>>>
>>> Here is what I have, any ideas on how I can close the
>>> window based on the querystring ?
>>>
>>> <html>
>>> <%Language=VBScript%>
>>> <%
>>> GoToURL = Request.querystring("site")
>>> parmAction = Request.querystring("action")
>>> %>
>>>
>>> <head>
>>> </head>
>>> <body>
>>>
>>> parmAction : <% Response.Write parmAction %></br>
>>>
>>> <% if parmAction <> "Close" Then %></br>
>>> Waiting 10 Seconds For Testing ReDirect</br>
>>> <meta HTTP-EQUIV="REFRESH" content='10; url=http://<%
>>> Response.Write GoToURL%>'>
>>> <%else%>
>>> </br>
>>> *****************************</br>
>>> <%Response.Write parmAction%> Window Selected</br>
>>> Write Code To Close Window</br>
>>> *****************************</br>
>>>
>>> <%end if%>
>>> </body>
>>> </html>
>>
>>
>>.
>>