Forums

This topic is locked

JavaScript open asp page in parent frame

Posted 17 Nov 2002 11:49:20
1
has voted
17 Nov 2002 11:49:20 tom andrews posted:
I was wondering if you could help me, apologies if this is very simple, but have looked for the code and cannot find it, possibly suffering from blindness!

I have found numerous code for working with links, forms, etc, but not with just server side script (asp 3.0) on the page, I have been told MX has a behaviour for this? but can't find it as yet!

Rather than have www.mypage.com'open in a new window is it possible for it to open in the parent frame?

This is what I am using now (obviously with script language tags as well) -

%>

window.open('www.mypage.com')
window.close()

<%

%> finishes off the previous bit of vb script, which was an if... then... statement

specifically, it says if there's no cookie, do this... if there is do that...

Do you know any suitable code or alternatively a good resource to find it?

Thanks for your help.

Tom.

Replies

Replied 04 Dec 2002 08:31:57
04 Dec 2002 08:31:57 Dan The Man replied:
%>

window.frameName.open('www.mypage.com')
window.frameName.close()

<%

or

%>

frameName.open('www.mypage.com')
frameName.close()

<%

Reply to this topic