[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Frames/window.open problem



Hi,

I've been having a problem with opening a new window with javascript from
within a frame. I have the following HTML/JS:

<SCRIPT LANGUAGE="JavaScript">
	function resume() {
msg=window.open("http://www.blah.com/index.html","Resume","toolbar=no,width=
635,height=405,directories=no,status=no,scrollbars=yes,resize=yes,menubar=no
");	}
</SCRIPT>
[...]
<A HREF="#" onClick="resume()">Resum&eacute;</a>

Now, if I load this particular page by itself (No Frames), this method works
fine. If the page is loaded thru a frame (IE: as part of a frameset), it
just won't work - It will bring me to the top of the page again (Because of
the #). Interesting thing: If I load it individually first (W/O Frames), and
THEN try it from within frames, it works.

Anyone have an Idea what's wrong, or is this a JS Bug?

Alex Kremer
axe@cybercomm.net
"Well, tough noogies. User Interface isn't always my strong point."

--------------------------------------------------------------------
For help about the list, please send a message to 'majordomo@obscure.org'
with the message body 'help'. To unsubscribe, send a message to
'majordomo@obscure.org' with the message body 'unsubscribe javascript'.
List archives and pointer to FAQ: http://www.obscure.org/javascript/