Target _parent not working in form

jkellum
jkellum used Ask the Experts™
on
test.cfm:

<a href="searchTest1.cfm" target="_blank">search</a>

searchTest1.cfm:

<form action="records.cfm" method="post" target="_parent">
<input type="submit" value="Search">
</form>

Problem: The form should open up in test.cfm when you hit submit....but it doesn't.  Any help is appreciated.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
I'm not sure why that doesn't work, but you could try this:

<form action="records.cfm" method="post"
   onsubmit='if(opener.name="")opener.name="theParent";this.target=opener.name;return true;'>
you can in the target window write:

<script>
window.name="somename"
</script>

and then in the form:

<form action="records.cfm" method="post" target="somename">
<input type="submit" value="Search">
</form>
ahosangFinance Systems Developer

Commented:
what is happening? Please detail

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial