Hi is there a way to pass iframe id ... php to javascript

in php my code

echo "<iframe name='messageTxt' id ='" . $e . "' src='" . $e . "' style='display:block'></iframe><input type='button'...