Objects in Javascript programs #2151
Answered
by
BobSquarePants
BobSquarePants
asked this question in
Q&A
-
Hi, As I can't get (yet) set a focus to an element from Brython I try to call a Javascript from Brython But it wont work or I get error xxx is not a function --> The Javascript function in the page function givefocus() {
document.getElementById("test").focus();
} in Brython (This is an extract) from browser import window
window.givefocus #no error message but nothing happen either.
# window.givefocus() give error "givefocus is not a function" Any ideas ? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
BobSquarePants
Jan 22, 2023
Replies: 2 comments
-
I guess the problem originate because --> I've tried with other function, and it work like a charm :) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
BobSquarePants
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I guess the problem originate because -->
I've tried with other function, and it work like a charm :)