javascript - Can Dart manipulate HTML elements in other windows? -
Then I have an embedded dirt app in a page and it opens another window in which only one with HTML / JS The first page is. I was trying to get information in the page and was trying to display it from inside the dart, roughly like:
Var div = querySelector ("# div_id"); Div.text = "My Message"; I tried different forms with different types of elements, but no luck.
Finally, I just wrote the display code on the child window HTML in JS and passed the information in using a query string.
So my question is: can Dart manipulate another page if that page does not include dart.js and other stuff? Or am I just doing something wrong?
Thanks for any information.
If you create a new window using the window.open () method, then you will see a windowobject object Can take back You can dig into a new window dom using this reference. See for more information
Comments
Post a Comment