Re: Creating a new Explorer Window by passing HTML
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: Creating a new Explorer Window by passing HTML

From: Randy Webb <HikksNotAtHome@aol.com>
Date: Sun Apr 30 2006 - 07:24:08 CEST

Thomas 'PointedEars' Lahn said the following on 4/28/2006 5:04 AM:
> marss wrote:
>
>>> var newWindow = window.open();
>>> newWindow.document.innerHTML = target.innerHTML;
>
> Please provide attribution of quoted material.
>
> <URL:http://jibbering.com/faq/faq_notes/pots1.html>

Solid reference but at a minimum point a person to the relevant spot in
that document:

<URL: http://jibbering.com/faq/faq_notes/pots1.html#ps1Post>

covers quoting/attributing.

> <URL:http://www.safalra.com/special/googlegroupsreply/>

Irrelevant to the post you replied to.

>> "document" doesn't nave "innerHTML" property, use "write()" method
>> instead of.
>>
>> newWindow.document.write(target.innerHTML);
>
> It will not work, because the `innerHTML' property of any DOM object will
> always only evaluate to the code of the content, not to the code of the
> container. Therefore, one has to write at least:

That does not, at a minimum, satisfy the needs.

> var newWindow = window.open();
> if (newWindow && newWindow.document)

No test to see if the window was closed by a popup blocker?

Nor does the code do anything with Symantec popup blocking code.

-- 
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Received on Mon May 1 05:27:38 2006