Unfortunately this does not work. The browser only parses through the
HTML once. While theoretically possible to have Javascript change the
code, the browser will not parse the new HTML. Thus it is a moot point.

You might want to look into Cascading Style Sheets(CSS). They might be
able to do want you want. They are extremely powerful especially when
combined with Javascript.

Doug


>Date:         Mon, 8 Mar 1999 17:21:24 -0000
>Reply-To: "A mailing list for discussion about Sun Microsystem's Java
>              Servlet API Technology." <[EMAIL PROTECTED]>
>From: Petr Jiricka <[EMAIL PROTECTED]>
>Subject:      [a little bit off topic] Generating part of a page in
JavaScript
>To: [EMAIL PROTECTED]
>
>Hi,
>Is it possible to write HTML code by JavaScript in the middle of a
document?
>I would like to dynamically change a part of a page when user clicks a
>button on a page without having to call my servlet, because the page is
>quite big and it needs to change quickly.
>Thanks in advance for your help.
>
>Petr
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to