print and echo html code show blank yellow dialog onLoad

I need to put some CSS code in Form onLoad action and every time I put print or echo statement, this code is supposed to be hidden on the page , but system sees it as something to be processed and show blank yellow dialog, as soon as it it closed my CSS code disapears

This works fine for grids