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

B

Bill C

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
 
L

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!";
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top