Javascript Question
| From: | GodFoca | Date: | Mon, 07 Jun 2004 14:47:52 +0000 |
| Subject: | Javascript Question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-187791@lists.php.net to get a copy of this message | ||
Hey! Sorry for the OT, but since there seems to be no js newsgroup in gmane,
I thought maybe someone in here could answer this simple question.
I am trying to use javascript's "print()" to print a frame FROM ANOTHER
frame.
This is the layout:
<frameset rows="*,40" frameborder="NO" border="0"
framespacing="0">
<frame src="..." name="pritableText">
<frame src="..." name="printButton" scrolling="NO" noresize>
</frameset>
In printButton I have a simple anchor:
<a href="#" onClick="parent.printableText.focus();
parent.printableText.print();">
Yet nothing happens. What's wrong?
Thanks in advance,
Nicolas Sanguinetti