Get parent URL

They have: 82 posts

Joined: Oct 2001

OK guys,

I have a frames page that contains an HTML page. The html page needs to get the URL of the parent window.

I believe I have done this before but cannot recall how to do it.

It needs to be JavaScript.

Thanks,

Mike

Blessed is the man who fears the LORD, who delights greatly in his commandments. Psalms 112:1

druagord's picture

He has: 335 posts

Joined: May 2003

there you go this will old the complete URL of the parent window

window.parent.location
'

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.