Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > window.opener.location.href doesn't work in frame

Reply
Thread Tools

window.opener.location.href doesn't work in frame

 
 
Leon
Guest
Posts: n/a
 
      06-24-2003
From parent windows, I have created a popup windows that comprises two
frames.
When I have clicked a link button in one of the frames, I would like
to redirect the parent windows to somewhere.
So I did
------------------------------------------------------------------
<a href='#' onclick='window.opener.location.href
=""http://www.google.com"";'>Click here</a>
------------------------------------------------------------------

but it didn't work.
Without frame, it works. So I presume it has something to do with
frame.
Could you help me?

Thanks in advance,
 
Reply With Quote
 
 
 
 
Boban Dragojlovic
Guest
Posts: n/a
 
      06-24-2003

Instead of script, just set the "target" attribute of the anchor to "_top"

<a href="#" target="_top">

That tells is to navigate the "top" frame.

If the parent is NOT the top frame (multiple nested frames), then set target
to the name of the frame that you want to navigate

<a href="#" target="parent_frame_name">


"Leon" <> wrote in message
news: om...
> From parent windows, I have created a popup windows that comprises two
> frames.
> When I have clicked a link button in one of the frames, I would like
> to redirect the parent windows to somewhere.
> So I did
> ------------------------------------------------------------------
> <a href='#' onclick='window.opener.location.href
> =""http://www.google.com"";'>Click here</a>
> ------------------------------------------------------------------
>
> but it didn't work.
> Without frame, it works. So I presume it has something to do with
> frame.
> Could you help me?
>
> Thanks in advance,



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Server.Transfer - frame to non frame jason ASP .Net 1 09-05-2005 07:34 AM
Framesets - Event in frame 'A' triggering update of frame 'B' -How ? JAW ASP .Net 2 11-09-2004 07:54 PM
Referring to a frame's content from another frame Microsoft ASP .Net 3 10-04-2004 06:35 AM
Manipulating control in one frame from another frame, how? Søren M. Olesen ASP .Net 0 11-13-2003 05:37 PM
To frame or not to frame? donut HTML 4 08-19-2003 10:47 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57