Здравствуйте, Аноним, Вы писали:
А>doesn't work with FF.
А если так:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head>
<title>JavaScript overload</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<script id="greeting" src="/script/greeting.php?name=Anonymous" type="text/javascript"></script>
</head><body>
<script type="text/javascript">
/*<![CDATA[*/
var
script = document.getElementById('greeting'),
parent = script.parentNode;
parent.removeChild(script);
parent.appendChild(script = document.createElement('script'));
script.id = 'greeting';
script.type = 'text/javascript';
script.setAttribute('src', '/script/greeting.php?name=Customer');
/*]]>*/
</script>
</body></html>
Файл greeting.php:
alert('Hello <?= $_REQUEST['name'] ?>');