Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 192
  • Last Modified:

access to loaded html page

I am doing some testing and I don't know how to connect the javascript code on the keyboard to the loaded html page text field.

The html page has javascript keyboard in it. I found the keyboard code on line but that works fine. WHat I want to do is to load any html page and be able to use the keyboard on the parent html page to type in to text field of the loaded html page.

in the following link:
http://intelgraphic.com/kboard/6.html

you will see some text field on the left which are on the main html page and you can use the keyboard to type in them, but the loaded html page (in the center), would not capture the javascript keyboard type.

How do I do it so you can type in the loaded html page using the keyboard ?
0
Angha110
Asked:
Angha110
  • 2
1 Solution
 
Gurvinder Pal SinghCommented:
That page "w3schools.com" is from a different origin. It cannot capture events that are triggered in your parent page
0
 
Angha110Author Commented:
So, you mean there is no way to connect that keyboard to the text field on the loaded page?
Some sort of tricky way, or...!!!!
0
 
nap0leonCommented:
Browsers do not allow you to use javascript from one domain on another domain's webpage.
So, no, you cannot directly type from your page to put data into the other page's form.

This is called "Cross-Site Scripting"
0
 
Angha110Author Commented:
Since there is no solution for my question. What should I do?
Do I accept the response (not possible) as a solution?

Please advice
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now