codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  document.write in IE and Mozilla/Netscape.  S_Flex at 11:47 on Wednesday, August 30, 2006
 

I`v been having a problem with "write" acting the same in IE and Mozilla.

My goal is to have the js code add to what is there for IE and Mozilla. In IE i can do it but in Mozilla it dosnt act the same.

To add to the window in IE i have it like this
top.frame_win.document.write("Add this too")

But in Mozilla it clears the current info then prints, or some thing like that.

to do what mozilla dose in IE the code would be like this
top.frame_win.document.open()
top.frame_win.document.write("Add this too")
top.frame_win.document.close()

if this is the way mozilla works and I would have to deal with it.
Then how would i get the body data from the window I want to print to?

  Re: document.write in IE and Mozilla/Netscape.  S_Flex at 11:43 on Friday, September 01, 2006
 

This is fixed
I guess if i fix and error in the js, it will now work. ;)








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: doubt in asp.net
•  Scraping, Pulling, Calculating, and Displaying
•  Re: How to open a MS Word document from Javascript
•  session time out
•  Scroll To Not Fully working in IE...
•  Re: document.write in IE and Mozilla/Netscape.
•  Re: info out of an video example
•  Re: Help: Trouble with z-Index and SELECT lists
•  perl siganl handling in Term::Readline


Recent Articles
Javascript OnMouseDown
Pointer types and Arrays
What is a pointer in C?
Multiple submit buttons with form validation
Understanding Hibernate ORM for Java/J2EE
HTTP screen-scraping and caching
a javascript calculator
A simple way to JTable
Java Native Interface (JNI)
Parsing Dynamic Layouts


© Copyright codetoad.com 2001-2006