...

View Full Version : a href parent??



nikko50
06-15-2007, 04:15 PM
How do I get the parent document to change from within an iframe. I tried the below but it won't work.

<a class='results' javascript:parent.location.href=Edit.php?orderid=$line[id]>$line[id]</a>

glenngv
06-15-2007, 05:17 PM
<a class='results' href="#" onclick="parent.location.href='Edit.php?orderid=$line[id]'; return false;">$line[id]</a>
or better without scripting at all.

<a class='results' href="Edit.php?orderid=$line[id]" target="_parent">$line[id]</a>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum