Forum Moderators: open

Message Too Old, No Replies

Table Cell Linkage to goto window target

how to make a table cell link open in _parent

         

kpjuni

8:56 pm on Jun 18, 2009 (gmt 0)

10+ Year Member



I am currently making my link an entire table cell with this code.

<td onClick="document.location.href='http://www.google.com';"

here is my little issue. The table is inside an iframe. what code do I use to get that link to open as if using target="_parent" like in a typical a href?

it seems odd, but when you click on that link, it opens the link inside of the iframe. If i recall, a regular html 'a href' won't do that. but i could be mistaken..

Does anyone have the solution? thank you!

incrediBILL

9:05 pm on Jun 18, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Try parent.document.location.href and see if that does what you want.

kpjuni

9:15 pm on Jun 18, 2009 (gmt 0)

10+ Year Member



That is a no go.. but everything still works just like normal.

kpjuni

9:31 pm on Jun 18, 2009 (gmt 0)

10+ Year Member



got it figured out! dear lord..

parent.parent.location.href