getElementsByName in IE7

In case you don’t know why this isn’t working in IE, here is the MSDN documentation on that function: When you use the getElementsByName method, all elements in the document that have the specified NAME attribute or ID attribute value are returned. Elements that support both the NAME attribute and the ID attribute are included … Read more

How to launch an EXE from Web page (asp.net)

This assumes the exe is somewhere you know on the user’s computer: <a href=”https://stackoverflow.com/questions/916925/javascript:LaunchApp()”>Launch the executable</a> <script> function LaunchApp() { if (!document.all) { alert (“Available only with Internet Explorer.”); return; } var ws = new ActiveXObject(“WScript.Shell”); ws.Exec(“C:\\Windows\\notepad.exe”); } </script> Documentation: ActiveXObject, Exec Method (Windows Script Host).

Programmatically open new pages on Tabs

You can, in Firefox it works, add the attribute target=”_newtab” to the anchor to force the opening of a new tab. <a href=”https://stackoverflow.com/questions/427479/some url” target=”_newtab”>content of the anchor</a> In javascript you can use window.open(‘page.html’,’_newtab’); Said that, I partially agree with Sam. You shouldn’t force user to open new pages or new tab without showing them … Read more

:after and :before CSS pseudo elements hack for Internet Explorer 7

with any pure CSS hack it’s not possible. Use IE8.js http://code.google.com/p/ie7-js/ It has support for this. http://ie7-js.googlecode.com/svn/test/index.html test page also there after – http://ie7-js.googlecode.com/svn/test/after.html before – http://ie7-js.googlecode.com/svn/test/before.html Edit after 1st comment You can just keep this js for IE6 and 7. other browser will not read it. <!–[if lt IE 8]> <script src=”http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE8.js”></script> <![endif]–> And … Read more

Running Internet Explorer 6, Internet Explorer 7, and Internet Explorer 8 on the same machine

I wouldn’t do it. Use virtual PCs instead. It might take a little setup, but you’ll thank yourself in the long run. In my experience, you can’t really get them cleanly installed side by side and unless they are standalone installs you can’t really verify that it is 100% true-to-browser rendering. Update: Looks like one … Read more