470,590 Members | 2,515 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,590 developers. It's quick & easy.

What does this do? "parent.frames[0].history.go(0)"

I've tried to google an explanation, but can't find one:

I'm obviously don't know dhtml, but need to clean up a misbehaving line of
code in a CGI.

Does the "0" value of "parent.frames" mean the frame itself? Does the 0
value in history.go mean reload the current page?.

Is there a way to set a form variable through the .onload method?

Thanks,

Bill


Aug 20 '05 #1
2 3449
Lee
Bill C said:

I've tried to google an explanation, but can't find one:
An explanation of what? (Don't make us look back at your
subject line to figure out what you're talking about).
Does the "0" value of "parent.frames" mean the frame itself?
It means the first frame. The first element of any array is
indexed by 0. The second one is indexed by 1, etc.
Does the 0 value in history.go mean reload the current page?.
More specifically, it means to refresh the current page.

Is there a way to set a form variable through the .onload method?


Sure:

document.myFormName.myFormElementName.value="Hello , world!";

Aug 20 '05 #2
Thank you!
Aug 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Simon Erikson | last post: by
6 posts views Thread by Harald Weiser | last post: by
5 posts views Thread by AES/newspost | last post: by
6 posts views Thread by Ray Schumacher | last post: by
2 posts views Thread by elia | last post: by
4 posts views Thread by Ronald S. Cook | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.