SCRIPT5039: overriding const property - IE 9 Javascript Problem

I am trying to make my site compatible with the browser.

I am currently having problems with my javascript IE Developer console, which gives me the following error:

SCRIPT5039: Redeclaration of const property 
banner.js, line 1 character 1

This is line one:

var linkTemplate = new Template('<b>Time/Date:</b> #{time} #{date} (GMT)<br /><b>Username:</b> <a href="profile.php?p=#{username}" target="main">#{username}</a> <br /><b>Inbox:</b> <a href="inbox.php" target="main">#{unread}/#{inbox}</a><br /><b>Money:</b> &#163;#{money}<br /><b>Location:</b> #{location}<br /><b>Bullets:</b> #{bullets}<br /><b>Kevlars:</b> #{kevlars}<br /><b>Rank:</b> #{rank} - #{rank_percent}%');
var username, hours, minutes, seconds, messages, unread, date, money, location, bullets, kevlars, rank, rank_percent, avatar, backup ;
var ps;

If you want to see all javascript: http://www.gbmafia.com/static/js/banner.js

Thanks for reading:)

+3
source share
1 answer

the variable locationin line 2 contradicts the built-in variablewindow.location

choose a different name for this variable

+2
source

All Articles