html - How to scroll to a div on page load automatically? -


i writing .hta vbscript based installer online application. application requires latest jdk installed , cannot distribute .exe installer.

ideally, download , install of jdk should automatic, i.e.

1 -the user runs .hta installer -> clicks install

2 -the user accepts oracle's terms , download begins

problem

on download page http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html in license div id= agreementdiv user needs click *accept*before jdk download allowed. once click accept , can paste hotlink exe in url window http://download.oracle.com/otn-pub/java/jdk/7u17-b02/jdk-7u17-windows-x64.exe , download

how around this? ideally show small popup window navigates download page , scrolls down automatically agreementdiv , user clicks accept, download of jdk starts ( using hotlink) , page closed automatically.

i don't want (ideally) bypass requirement accept license because of obvious legal reason.

this part of code using navigate jdk page

set objwshshell = wscript.createobject("wscript.shell") set ie = createobject("internetexplorer.application")   ie   .visible = true   .navigate "http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html"  'wait browser   while .busy     wscript.sleep 100   loop   //somehow scroll agreementdiv in line below   //.document.getelementbyid("agreementdiv")          end 

if there better solution ,it appreciated. thankyou

document.location.hash = 'agreementdiv'; 

Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -