By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,384 Members | 1,794 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,384 IT Pros & Developers. It's quick & easy.

problem with window.open

P: n/a
I'm using the following simple piece of code:

function OpenTextModeSong(aParam){
myWindow = window.open("", "Song For Print", 'toolbar=1, menubar=1,
scrollbars=1, width=800,height=600');

var sPage = '';
sPage += '<html><head>';
sPage += '<link rel="stylesheet" type="text/css"
href="css/style.css"><title>LetrasyAcordes.net. Letras y acordes para
guitarra y piano </title>';
sPage += '</head><body>';
///sPage += DivInThePresentDocument.innerHTML; ///it also works fine
sPage += 'any content';
sPage += '</body></html>';

myWindow.document.write(sPage);
alert('It's been written already');
}

All is working fine, but browser keep waiting for something more, as if
it weren't received all the data when It did already...
What can be causing this problem?

regards - julian

Sep 12 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Forget it,

document.close() was missing ;)

regards - julian

Sep 12 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.