Note that there are some explanatory texts on larger screens.

plurals
  1. POjavascript function wont fire in IE
    text
    copied!<p>I have this code:</p> <pre><code> &lt;body onLoad="subcatSelection();"&gt; </code></pre> <p>The function is inside a .js file which is included with this code:</p> <pre><code> &lt;script type="text/javascript" src="bincgi/search_lists.js"&gt;&lt;/script&gt; </code></pre> <p>The function contains an alert('hello'); just for testing purposes to see if it gets called, but it doesn't.</p> <p>The "Page error" or whatever its called on the bottom left corner of Explorer 6 is displayed and when double clicking it it assumes there is an error on LINE x ROW y, which is the body-onload event.</p> <p>Anybody has an ide?</p> <p>If you need more input let me know... Thanks</p> <p>UPDATE:<br></p> <p>Some html before the onload event...</p> <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt; &lt;script type="text/javascript" src="bincgi/search_lists.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="bincgi/jsfunctions.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="bincgi/calendar_eu.js"&gt;&lt;/script&gt; &lt;link href="bincgi/main_styles.css" rel="stylesheet" type="text/css"&gt; &lt;link href="bincgi/calendar.css" rel="stylesheet" type="text/css"&gt; &lt;!--[if lt IE 8]&gt; &lt;link href="bincgi/main_styles_ie_lt7.css" rel="stylesheet" type="text/css"&gt; &lt;![endif]--&gt; &lt;style type="text/css"&gt; body { background-color: #fffec7; background-image: url(Graphics/test_bgr.gif); background-repeat: repeat-x; } &lt;/style&gt; &lt;/head&gt; &lt;body onLoad="subcatSelection();"&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload