Win a copy of Java XML & JSON this week in the XML and Related Technologies 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
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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

 
Ranch Hand
Posts: 37
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: 62803
203
  • 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: 37
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: 67224
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: 37
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.
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!