
July 3rd, 2008, 07:38 AM
|
|
Registered User
|
|
Join Date: Jul 2008
Posts: 5
Time spent in forums: 2 h 22 m 37 sec
Reputation Power: 0
|
|
|
Document.write page size limit?
Sorry if this has been addressed in the past, but I'm new to this forum. I'm having a problem with what appears to be a character limit on document.write usage. The following, simple code snippet works, but if 1 or more characters are added to the text (list of dashes), then the popup box does not work. This seems to be the case in IE, but not in firefox.
Does anyone know a way around this for IE?
Thanks!
Code:
<html><head>
<SCRIPT language="javascript">
function openPage(pageHtml) {
var newWin = window.open("","","width=600,height=420,scrollbars=yes,left=300,top=0 ");
newWin.document.open();
newWin.document.write(pageHtml);
newWin.document.close();
}
</script>
</head>
<body>
<table>
<tr><td>Test Link</td><td><a
href='javascript:openPage("<html><body>
------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------
--------
")'>
<u>Click Here</u></a></td></tr>
</table>
</body></html>
|