469,330 Members | 1,236 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,330 developers. It's quick & easy.

popup window containing parent info

2
hi,

i want to make a popup link and have the new page contain the info from a div in its parent.

ie:
page1.htm
[HTML]<div id="content">stuff</div>
<a HREF="javascript:popUp('popup.htm',700,600,1);">cl ick</a>
[/HTML]
popup.htm
[HTML]<div>info from content</div>[/HTML]


does anybody know how to do this? i'm completely baffed. lol

thanks in advance
Oct 31 '07 #1
3 1430
acoder
16,027 Expert Mod 8TB
avance, welcome to TSDN!

Expand|Select|Wrap|Line Numbers
  1. var content = window.opener.document.getElementById("content").innerHTML
should do the trick.
Oct 31 '07 #2
avance
2
Sweet. worked perfectly. Thanks a lot
Oct 31 '07 #3
acoder
16,027 Expert Mod 8TB
You're welcome. Post again if you have more questions.
Oct 31 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by Willem van Isselmuden | last post: by
38 posts views Thread by Shaun McKinnon | last post: by
4 posts views Thread by Andrew Alger | last post: by
2 posts views Thread by Chris | last post: by
1 post views Thread by chuckdfoster | last post: by
2 posts views Thread by sangram | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by Purva khokhar | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.