Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Javascript window.open() and fill value into textbox and trigger  RSS feed

 
Ranch Hand
Posts: 36
C++ Chrome Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Homepage.html


ALGAMEBean.js


So I had achieve the very first goal is open new tab of selected value URL.
But I until now I couldn't know how to fill in the value into the textbox and trigger the button, even though I had their attribute's ID.
I had tried using but it is still not filled.
This is part of my sample of idea. In the future, I would like to build something just like open the browser and auto-login for me.
So, in the future, the actual data/value are the username and password that I want to put into and trigger the button.
Please kindly advise.
Thanks.
 
Marshal
Posts: 61715
193
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"" suggests there is no ID. Have you confirmed that line 3 is actually finding an element?

Moving to our JavaScript forum.
 
gah hon
Ranch Hand
Posts: 36
C++ Chrome Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:"" suggests there is no ID. Have you confirmed that line 3 is actually finding an element?

Moving to our JavaScript forum.



What do mean why there is not ID tho? and which Line 3 you are referring to?
 
Marshal
Posts: 67163
169
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

gah hon wrote:

Campbell Ritchie wrote:"" suggests there is no ID. Have you confirmed that line 3 is actually finding an element?

Moving to our JavaScript forum.



What do mean why there is not ID tho? and which Line 3 you are referring to?



In the following code that you posted, what id value are you looking for?

 
gah hon
Ranch Hand
Posts: 36
C++ Chrome Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Bear Bibeault wrote:

gah hon wrote:

Campbell Ritchie wrote:"" suggests there is no ID. Have you confirmed that line 3 is actually finding an element?

Moving to our JavaScript forum.



What do mean why there is not ID tho? and which Line 3 you are referring to?



In the following code that you posted, what id value are you looking for?



Oh.. This just a example of I want to fill the value into the textbox.
For instance right, A google.com is open, but I also want the search value inside the searchbox and trigger the button Search as well.
 
Make yourself as serene as a flower, as a tree. And on wednesdays, as serene as this tiny ad:
Download Free Java APIs to Work with Office Files and PDF
htttp://www.e-iceblue.com/free-apis.html
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!