I don't think I understand you, but what's the need for the script? You can however, do this within the markup (Just to clarify things).

If you don't want to see the scrollbars within your iframe,...