|
-
Apr 18th, 2012, 01:23 AM
#1
Thread Starter
New Member
How to get VBScript to Click that Javascript Button?
Hey Guys,
i am writing a VBScript Tool for some work, that should be automatic.
I am struggling at gettin my VBScript to get a Link clicked:
HTML Source:
<td rowspan='3' align='right'><a href='#' onClick='SearchHosts(escape(document.formular_search.search_area.value), escape(document.formular_search.search_area2.value), escape(document.formular_search.search_area3.value), 0); ClearDetails(); return false;'><img src='/modules/mod_maintenances2/images/link_search_big.png' border='0' alt='Suchen'></a></td>
I tried to navigate to the javascript function to call it, but it didnt work or i did it wrong 
Any suggestion?
Over the alt it doesn t work, because its not unique in the source code.
I tried like
IE.Navigate("javascript:SearchHosts();")
or
IE.Document.parentWindow.SearchHosts()
or
IE.Document.All.Item("SearchHosts").Click
I am thankful for any helps.
Best Regards.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|