$browser

dertermines the name and the version of current browser you used.

Property Usage Description Sample Output
name {$browser.name} shows you the name of the current browser MSIE / FIREFOX
version {$browser.version} shows you the version of the current browser 6.0 / 2.0

Sample Usage:

{if $browser.name=="MSIE"}
<script type="text/javascript"
scr="{$relative_template_dir}../jquery.bgiframe.min.js">
</script>
{else}
<!-- FireFox -->
{/if}

HTML Source Output

if browser is Internet Explorer
<script type="text/javascript" 
src="../_templates/main/../jquery.bgiframe.min.js">
<script>
for other browsers. e.g. Safari, Firefox
	<!-- FireFox -->