Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening window works in Firefox, not in IE?

Status
Not open for further replies.

TheElephantMan

Programmer
Jun 18, 2004
42
US
Hi, all.

I have an innocuous line of code in an internal site that I'm developing that allows us to keep a close eye on the mischief that one of our systems gets into.

There's a summary page that lists errors in an HTML table, and then each error links to a detailed piece of text, in a popup window. Here's the code:
<a href="JavaScript:window.open(' Detail','height=400,width=600'); void 0;">An application error was not caught.</a>

In Firefox, this opens right up. In IE, I get a page error, indicating an "Invalid Argument." I'm stumped; what am I doing wrong?

Thanks in advance,
TEM
 
Hi

"Alarm Detail" is an invalid target window name. You can not have space in it. Explorer is more sensible to such things because it sets up a lot of proprietary accessors, contrary to the DOM.

Feherke.
 
Oh, duh.

That shows you how long it's been since I've done web programming; I was confusing that with the <title> tag on the page I'm trying to open in the window.

Works like a charm, thanks!
TEM
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top