Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
popup and window.write problem on IE.
Old 09-26-2007, 11:28 AM popup and window.write problem on IE.
Junior Talker

Posts: 3
Name: dai
Trades: 0
i would like to popup a window and document.write with javaScript.
The following works fine on FF, Safari, NS, both on Mac and PC, but fails in IE (6 and 7 as far as i know).
it opens a new window in IE, but it doesn't write anything. not even title.
any suggestion?

(this is written in xsl, i don't think it matters. )

HTML Code:
<script language="JavaScript">
    <![CDATA[
    
    
    function image(Pic,wVal,hVal,pTitle){
    
    subWin = window.open("",Pic,"width="+ wVal + ",height=" + hVal +",top=0,left=0");
    subWin.document.open();
    subWin.document.write('<html><head><title>'+pTitle+'</title></head><body background="'+ Pic +'"></body></html>');
    subWin.document.close();
    subWin.focus();

    
    }
    ]]>
    </script>
thanx or your help.
deluxmilkman is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to popup and window.write problem on IE.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.30197 seconds with 12 queries