I tried to create a dynamic bookmark by cribbing from a variety of examples, but it doesn't work and I get no diagnostic messages. I'd be grateful for any help and/or info.
Here is what I have:- javascript:function url() { var months = new Array(12); months[0] = "January"; months[1] = "February"; months[2] = "March"; months[3] = "April"; months[4] = "May"; months[5] = "June"; months[6] = "July"; months[7] = "August"; months[8] = "September"; months[9] = "October"; months[10] = "November"; months[11] = "December"; var date = new Date(); mval = date.getMonth(); dval = date.getDate(); retu 'http://news.bbc.co.uk/onthisday/hi/dates/stories/'months(mval)'/'dval'/default.stm'; } window.open(url(),"_blank
برچسب:
نویسنده: استخدام کار