Click to See Complete Forum and Search --> : How do I get a form button to link to a URL with "parent" targeting?


blastbum
09-08-2005, 02:02 AM
Hi,

I've got a button (a form button) that I've got linked to a URL, but it's got to have parent targeting on it. I asked this question previously on this forum and I got this answer:

<input type="button" onClick="_parent.location.href='whatever.htm';">

I've tried it and it doesn't work. Does anybody know why?

Your help will be greatly appreciated.

Blastbum :D

bathurst_guy
09-08-2005, 02:42 AM
try<input type="button" onClick="window.parent.location.href='whatever.htm';">

blastbum
09-08-2005, 05:43 AM
Works! It's all good bathurst_guy!!

:D