Hi,
I just wondered if there's any way to programmaticaly activate a link.
What I want to do is after pressing a button, change the content of one of the frames on my HTML page.
Then when that frame is loaded with the new HTML context, I want to automatically have another frame change it context...
Any idea how I could do this?
Comments
: I just wondered if there's any way to programmaticaly activate a link.
: What I want to do is after pressing a button, change the content of one of the frames on my HTML page.
: Then when that frame is loaded with the new HTML context, I want to automatically have another frame change it context...
: Any idea how I could do this?
:
You can use the onLoad() of the first frame for that. In the newly loaded fram place a function in its onLoad(), which updates the frame with the button.
: : I just wondered if there's any way to programmaticaly activate a link.
: : What I want to do is after pressing a button, change the content of one of the frames on my HTML page.
: : Then when that frame is loaded with the new HTML context, I want to automatically have another frame change it context...
: : Any idea how I could do this?
: :
: You can use the onLoad() of the first frame for that. In the newly loaded fram place a function in its onLoad(), which updates the frame with the button.
:
Could you please give a bit more details about the last part. I understand the onLoad() functionality, but I still don't know what the syntax is to change the content of a frame.
Normally you have a hyperlink and there you define a target and href, but I don't know how to do this programmatically
: : : I just wondered if there's any way to programmaticaly activate a link.
: : : What I want to do is after pressing a button, change the content of one of the frames on my HTML page.
: : : Then when that frame is loaded with the new HTML context, I want to automatically have another frame change it context...
: : : Any idea how I could do this?
: : :
: : You can use the onLoad() of the first frame for that. In the newly loaded fram place a function in its onLoad(), which updates the frame with the button.
: :
:
: Could you please give a bit more details about the last part. I understand the onLoad() functionality, but I still don't know what the syntax is to change the content of a frame.
: Normally you have a hyperlink and there you define a target and href, but I don't know how to do this programmatically
:
:
Here is a page from a great javascript tutorial, which explains the code you need: http://www.pageresource.com/jscript/jframe2.htm. It also includes a working example.
Thank you