![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
#1 |
Galvatron
![]() Join Date: June 24, 2002
Location: aa
Posts: 2,101
|
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 ] |
![]() |
![]() |
#2 |
Takhisis Follower
![]() Join Date: April 30, 2001
Location: szép Magyarország (well not right now)
Posts: 5,089
|
I've never seen any way of doing that. You can always refresh the frame and not invoke the document.write statement that time.
__________________
Too set in his ways to ever relate If he could set that aside, there'd be heaven to pay But weathered and aged, time swept him to grave Love conquers all? Damn, I'd say that area's gray |
![]() |
![]() |
#3 |
Galvatron
![]() Join Date: June 24, 2002
Location: aa
Posts: 2,101
|
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! |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
does mozilla support javascript? | philip | General Conversation Archives (11/2000 - 01/2005) | 5 | 07-03-2004 05:24 PM |
Having Problems with Javascript? | RitingFool | General Conversation Archives (11/2000 - 01/2005) | 4 | 04-02-2004 11:01 AM |
JavaScript Random Party Generator | Horpner Sneed | Miscellaneous Games (RPG or not) | 26 | 01-05-2004 06:57 PM |
JAVAScript Tutorials | LennonCook | General Conversation Archives (11/2000 - 01/2005) | 5 | 08-23-2002 05:41 AM |
JavaScript help needed!! | Talthyr Malkaviel | General Conversation Archives (11/2000 - 01/2005) | 4 | 05-26-2002 07:24 AM |