Forums

This topic is locked

javascript behaviour extension needed

Posted 17 Nov 2002 11:55:31
1
has voted
17 Nov 2002 11:55:31 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 03 Dec 2002 11:00:00
03 Dec 2002 11:00:00 Dan The Man replied:
try this
window.parent.frameName.open('www.mypage.com')
or
parent.frameName.open('www.mypage.com')

Reply to this topic