# Jscript to show month / year to comply with Firefox Mozilla

**URL:** <https://forum.kirupa.com/t/jscript-to-show-month-year-to-comply-with-firefox-mozilla/188692>\
**Category:** Uncategorized\
**Created:** [May 10, 2006, 3:12am UTC](https://forum.kirupa.com/t/jscript-to-show-month-year-to-comply-with-firefox-mozilla/188692 "2006-05-10T03:12:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![multimediamkt](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@multimediamkt](https://forum.kirupa.com/u/multimediamkt)\
**Post date:** [May 10, 2006, 3:12am UTC](https://forum.kirupa.com/t/jscript-to-show-month-year-to-comply-with-firefox-mozilla/188692/1 "2006-05-10T03:12:52Z")

</div>

may 10th 2006

I´ve employed the script at the bottom of this page to show month/year ;  
It works fine with IE , Opera and Netscape if “Display like IE” menu is selected ;  
is there a way to modify this script to render it compatible with Firefox or even another script that  
works with all main browsers ?

> 

\<script type=“text/javascript”\>  
//\<![CDATA[  
var n = new Date(), m = [‘Jan’, ‘Feb’, ‘March’, ‘April’, ‘May’, ‘June’, ‘July’, ‘August’, ‘September’,  
‘October’, ‘November’, ‘December’];  
document.write(m[n.getMonth()] + ’ ’ + n.getFullYear());  
//]]\>  
\</script\>

---

<div class="post-metadata">

**Author:** ![multimediamkt](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@multimediamkt](https://forum.kirupa.com/u/multimediamkt)\
**Post date:** [May 12, 2006, 5:44am UTC](https://forum.kirupa.com/t/jscript-to-show-month-year-to-comply-with-firefox-mozilla/188692/2 "2006-05-12T05:44:08Z")

</div>

pardon my previous post , I should be forty winks , the script was supposed to be inserted somewhere into the body tag.  
I tried to modify the script to [U]show only month & year [/U](I do not need the date) ;  
it has not worked .  
any hint ?  
cheers
