Note that there are some explanatory texts on larger screens.

plurals
  1. POJavascript: Onclick event not working in IE
    primarykey
    data
    text
    <p>I have tried to google this to no avail and have tried multiple options. All of which work in firefox but none have worked in IE. I have 2 onclick events on one page and neither are working in IE. The javascript file for both events is called by:</p> <pre><code>&lt;script type="text/javascript" src="openwindow.js"&gt;&lt;/script&gt; </code></pre> <p>The first event is an anchor event which I started with as:</p> <pre><code>&lt;a href="" onclick="streamwindow()"&gt;Listen Live&lt;/a&gt; </code></pre> <p>then tried</p> <pre><code>&lt;a href="javascript:streamwindow()"&gt;Listen Live&lt;/a&gt; </code></pre> <p>then:</p> <pre><code>&lt;a href="javascript:void(0)" onclick="streamwindow()"&gt;Listen Live&lt;/a&gt; </code></pre> <p>then:</p> <pre><code>&lt;a href="javascript:openwindow.js" onclick="streamwindow()"&gt;Listen Live&lt;/a&gt; </code></pre> <p>then:</p> <pre><code>&lt;a onclick="javascript:streamwindow()"&gt;Listen Live&lt;/a&gt; </code></pre> <p>I think that is everything I have tried so far for that one. The other click event is called when the user clicks on an image. Again works fine in firefox as is but not in IE. Code for the second event is:</p> <pre><code>&lt;td width="450px" align="center"&gt; &lt;p&gt;Clip of The Day&lt;/p&gt; &lt;img id="image2" src="images/sound.jpg" onclick="clipwindow()" /&gt; &lt;/td&gt; </code></pre> <p>I have played with this one quite as much. The javascript file (openwindow.js) contains:</p> <pre><code>function clipwindow() { window.open ('clipoftheday.html', 'Clip of the Day', 'height=200', 'width=100', 'toolbar=no', 'menubar=no', 'scrollbars=no', 'resizable=no', 'location=no', 'directories=no', 'status=no') } function streamwindow() { window.open ('stream/index.html', 'Live Stream', 'height=70', 'width=500', 'toolbar=no', 'menubar=no', 'scroolbars=no', 'resizable=no', 'location=no', 'directories=no', 'status=no') } </code></pre> <p>Please help me with this. I look forward to hearing back from people.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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