[RESOLVED] Giving control back to the browser
Step1: window.location = "http://www.google.com"
Step2: document.getElementsByName("q").value="Script Value"
Since the page is not completly loded, script could not able to find the text field that it has to set and throwing an error: "Internet Explorer Script Error"
I have tried "setTimeout" function, however the problem is: Browser taking the control back after the whole script is getting executed and then page is getting navigated to the page "http://www.google.com"
Please guide me!!
Originally Posted by krieya
What, in fact, is your real need? Maybe cookies might resolve it, but definitely not in this manner.
Any suggestions to get this task done?
I have asked you what you want to do, not what do you think about how that has to be done. Can you detail, in simple words? An hypothetical example, for instance.
Sorry for that KOR, I thought it would be clear if i mention you how my script should go.
Here is a simple example.
I want to run a script to,
1. Navigate to www.google.com
2. Set search text
3. click search button.
here is the script.
Please suggest me how to inject the above script in to IE browser.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)