Jump to content

Targeting the parent window


jcink

Recommended Posts

Hi I'm having some trouble with windows.

Lets say i have on page 1:

<a href='test.html' target='_blank'>

And on the test.html page, i want to target the window that launched it.

<a href='javascrip:document.blahblaha' target='_parent'>
edit: i know its supposed to say J A V A S C R I P T but every time i type the full word i get 406 not acceptable error O_o

but this does not seem to work. is there a way to do this?

Thanks,
Jcink
Link to comment
Share on other sites

This might help.

[a href=\"http://www.webreference.com/js/tutorial1/opener.html\" target=\"_blank\"]http://www.webreference.com/js/tutorial1/opener.html[/a]

There's also a bunch of stuff about refreshing the parent window. That should help you because it will show you how they targeted the parent window for refresh. You can prune through and see what you want.

[a href=\"http://www.google.com/search?sourceid=navclient-ff&ie=UTF-8&rls=GGGL,GGGL:2005-09,GGGL:en&q=target+parent+window+in+javascript\" target=\"_blank\"]http://www.google.com/search?sourceid=navc...w+in+javascript[/a]

But I think the first one will help the most.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.