A Short Page: Empty View Or Empty Layout?

I need to create an almost empty HTML page. This page will execute certain JavaScript code and immediately close after it not showing any messages to the user.

Should this page be defined as a view with empty layout or as a layout with empty view?