Im new to Javascript so please be patient, lol

I want to be able to hide a iframe and post results from a form into a new page if that makes sense
<form action=/search.lx" method="get" target="test" name="Form">
<iframe name="test" frameborder="0" marginwidth="0" marginheight="0" style="height: auto; text-align:center; width: 524px;" src ="includes/upsell_items.html">
</iframe>