<head>
<title>{lang}wcf.global.error.title{/lang} - {lang}{PAGE_TITLE}{/lang}</title>
{include file='headInclude' sandbox=false}
- <script type="text/javascript">
- //<![CDATA[
- if (document.referrer) {
- onloadEvents.push(function() { document.getElementById('errorMessage').innerHTML += "<br /><a href=\"" + document.referrer + "\">{lang}wcf.global.error.backward{/lang}</a>"; });
- }
- //]]>
- </script>
</head>
<body{if $templateName|isset} id="tpl{$templateName|ucfirst}"{/if}>
{include file='header' sandbox=false}
{@$message}
</p>
</div>
+<script type="text/javascript">
+ //<![CDATA[
+ if (document.referrer) {
+ $('#errorMessage').append('<br /><a href="' + document.referrer + '">{lang}wcf.global.error.backward{/lang}</a>');
+ }
+ //]]>
+</script>
<!--
{$name} thrown in {$file} ({@$line})
<script type="text/javascript">
//<![CDATA[
if (document.referrer) {
- onloadEvents.push(function() { document.getElementById('errorMessage').innerHTML += "<br /><a href=\"" + document.referrer + "{@SID_ARG_2ND_NOT_ENCODED}\">{lang}wcf.global.error.backward{/lang}</a>"; });
+ $('#errorMessage').append('<br /><a href="' + document.referrer + '">{lang}wcf.global.error.backward{/lang}</a>');
}
//]]>
</script>