thunter
Joined: 10 Nov 2010
Posts: 7
|
Posted: Mon Nov 29, 2010 10:24 pm Post subject: DocumentComplete(tool) problems in IE |
|
|
The following banner code works differently in firefox than it does in IE. In firefox, DocumentComplete is fired as expected with every page load (You can see the counter increment each time). In IE, DocumentComplete is only fired once. It should fire again when there is another page navigation. Opening a new tab via a link will sometimes trigger DocumentComplete to fire again, but it usually doesn't under normal browsing.
This is using a toolbar installed in IE, not Toolbar Studio.
| Code: |
<html>
<head>
<style type= "text/css">
<!--
body {
margin-left:0;
margin-right:0;
margin-top:0;
margin-bottom:0;
width:100%;
height:100%;
overflow:hidden;
background-color: threedface;
font-size: 9pt;
font-family: helvetica,clean,sans-serif;
}
-->
</style>
<script language="javascript" type="text/javascript">
var toolbar = null;
var counter = 0;
function DocumentComplete(tool) {
toolbar = tool;
counter = counter + 1;
document.getElementById('message').innerHTML = "Count: " + counter;
}
</script>
</head>
<body>
<div id="message"></div>
</body>
</html>
|
|
|