$(document).ready(function() { if ( != '') { alert() } }