![]() |
i tried to google it up and look through tutorials but i couldn't find anything on this so maybe some of you knows:
is it possible to delete or clear text with javascript that was written by a document.write command? is there even a way to select and delete text with js? edit: i mean the text in normal window frames not in forms [ 11-15-2003, 09:41 AM: Message edited by: philip ] |
I've never seen any way of doing that. You can always refresh the frame and not invoke the document.write statement that time.
|
the problem is with a function I wrote, I don't have the actual code here but i can write it generally:
funtion change() { parent.{frame name}.location='name.html'; parent.{frame name}.document.write("{a table with text in it}"); parent.{frame name}.document.bgColor="#224466"; } name.html is a empty html doc with only the background color changed. it has to be called as otherwise I can't get the background colors to work properly. the first line is my way to refresh the page, as I use this script for all the links in my site, this is necesarry because otherwise the tables are added under each other instead of written a new one. The problem is that if there's a table in the frame the script sort of stops after the first line (empty page is in the frame now) and needs a second click on the link to write the table. I tried to make this function go off twice when clicked, that worked if there was already a table. if there wasn't a table however it would create a table and put the empty site back in (logical). I'm searching for refreshing the frame and writing the table in one click on the link, as I doubt everyone notices they have to click twice on the link. I found this line: window.history.go(0);. I'm going to try it, but I doubt it'll work as the history of the frame contains tables as well. Thans for mentioning refresh, that turned some different results up in google! |
All times are GMT -4. The time now is 12:26 PM. |
Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
©2024 Ironworks Gaming & ©2024 The Great Escape Studios TM - All Rights Reserved