Page 1 of 1

Note: window.focus() issue with Internet Explorer (IE6, IE7)

Posted: Wed Feb 07, 2007 5:05 pm
by Tech Support
We discovered a problem with the window.focus(); command inside of Internet Explorer. When this element is on a web page, it is impossible to move IE in the background or to enter a new URL. With IE7, the problem only occurs if you click "yes" on the "Allow blocked content" bar that appears.

Technically this is not a problem with iMacros itself, but Internet Explorer. But it affects the web page recording with iMacros:

If you want to record a macro on such a page, we recommend that you save the page to a local file first and remove the window.focus() command. Then record your commands on the local page.

REPLAY is not affected by the problem. So once you recorded the macro on the modified page, it works well with the real page, too.

Code: Select all

<html>
<head>
   <link rel="stylesheet" href="/precos/css/styles.css" type="text/css">
   <script language="JavaScript">
   <!--
     window.focus();
   //-->  
   </script>
   <title>Windows.Focus Test Page - iOpus</title>
</head>

<body bgcolor="#ffffff" onBlur="javascript:window.focus();">
  Test Page
</body>
</html>