I have read the following message from Trevor Stapleton
<trevor.stapleton@ntlworld.com>
and have decided to lend my vast knowledge.
The writer said:[color=blue]
> can anyone tell me how to stop the document.write opening a new window
> when called in a function, what I want to do is really simple but is
> is defeating at every turn.
> I have a line of text that is a link on an html page, when clicked i
> want the the function called to print a name, imediatly after the
> calling link (on the same page) please help whilst I still have some
> hair left.
>
> TIA
> Trevor
>[/color]
and my reply is:
A document.write done after the page has been displayed always replaces
the entire page including any scripts that were in the page. You will
need some other method such as a form or iFrame. You can also
dynamically replace a division using the innerHTML function but I have
not had much success with it.
--
Dennis M. Marks
http://www.dcs-chico.com/~denmarks/
Replace domain.invalid with dcsi.net
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----