Im trying to use javascript to show iframe only when you click the submit button.

I understand how to hide Iframe I believe

<iframe name="carsearch" width="100%" style="visibility:hidden"></iframe>

but dont know how to display it when submit button is clicked