how can I in vbscript Wait till site loads, then doevents ?
Thanks in advance!
Printable View
how can I in vbscript Wait till site loads, then doevents ?
Thanks in advance!
I may be able to help, but i am not quite sure what you want. Are you saying that you want a function to wait until the page is loaded ant then start doing things? Because i think that this is the default way things are.
What I mean is I've got a series of commands BUT one of them is to change document.location (i.e. URL) and I want it to wait till the page loads and only then continue.
One more question:
I have a frameset, topframe is name topFrame and bottem one is named bottemFrame, how can I from the top change the bottem one's location using vbs?
Thank you very much.
hmmm....does all this have to be done in VBScript? Because what you want could be very easily done in JavaScript. :confused:
Here you go:
For your second question:Code:Sub Window_OnLoad()
Window.Navigate "http://www.vb-world.com"
End Sub
Code:Window.Parent.Frames("topFrame").Document.Location = "http://www.vb-world.com"
Give a name for your form by including
name="Test"
(in my case i have used test)
and the code below will work.
Code:window.parent.frames("top").document.forms("test").t1.value = "Test"