object-expected

Adding Javascript Confirm Dialog to LinkButton/Form generates Object Expected error

I am attempting to add a javascript confirm dialog to either my linkbutton onclick event or my form onsubmit event. Neither of them work as I receive an 'object expected' error from the browser. frm.Attributes.Add("onsubmit", "return Confirm('Really do this?')") How do I add a confirm dialog to the 'onsubmit' or 'onclick' events wit...

'Object Expected' Javascript error in IE8 when using prototype.js

function icPageInit() { $("icImgDiv" + icAlternate()).setOpacity(0); return true; } window.onload = icPageInit; This piece of Javascript code works fine in Firefox and Chrome, but fails with the error 'Object Expected' in Internet Explorer 8. IE8 says the error occurs on line 3 of the above code. Does anyone know why this is h...

Javascript document.write in IE 8

This is doing my head in, been chasing it all day. We have an ad server that calls a script on our site which then inserts code. E.g. Adserver page called in an iframe: <html> <head><title></title></head> <body> <script src="http://adserver/ad?s=728x90"&gt;&lt;/script&gt; </body> </html> The javascript returned by the script call ab...