|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
when using the 'document.write' command within an innerHTML command, it clears the screen and opens a new document. I cannot figure another way to get around this in IE?
does anyone have suggestions? |
|
#2
|
|||
|
|||
|
Yes, this has happened to me a lot too. If you have data that changes a couple times on a page and you have to print this data, examine this example:
<img src="img1.gif" onClick="valueOfData"> <form name="theForm"> <input type="Text" name="field1"> </form>, to where function valueOfData is: function valueOfData() { document.theForm.field1.value=window.event.x; } window.event.x would be your changing value, say you have an image, (please check http://www.sitesuwant.com/exampleXY.html to clear this up), and when you click on it, the x and y coordinates are printed in the fields. If you use document.write(); it will reprint on another page. That's my advice. So, use the text fields for changing data instead of document.write(). Devin www.sitesuwant.com sitesuwant@sitesuwant.com |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > document.write creates new document? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|