Question about JS control of different frames

Source: Internet
Author: User
JS controls different frames. if you have any questions, ask the webpage that there are two frames, one for main and the other for left. now there is an input box in main, when I enter the code and press enter, the corresponding content will be displayed in leftframe. The problem is that I want to capture a key, such as the keys, in the main input box, my question about controlling different frames with the cursor from JS
You guys have a question
There are two frames on the webpage, one being main and the other being left. now there is an input box in main. when I enter the code and press enter, the corresponding content will be displayed in the left Frame, my problem now is that when I want to capture a key in the main input box, for example, the cursor key, I automatically jump to the left frame input box and enter the amount.
I am not familiar with how to operate this cursor in js and focus it on the input box of left frame.
Thanks

------ Solution --------------------
Replace leftFrame, yourText.
Prarent. leftFrame. yourText. fouce ();

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.