Index.html
Код: Выделить всё
TEST
$("#open-new-windows").click(function () {
var w = window.open(
"http://localhost/test/child.html",
"TEST",
"width=300,height=400"
);
w.addEventListener("load", function () {
var html = $(w.document.body).find("ul");
console.log(html.length); // return 1
html.on("click", "li", function () {
var a = $(this).text();
alert(a);
});
});
});
Код: Выделить всё
[list]
[*]1
[*]2
[*]3
[*]4
[*]5
[*]6
[*]7
[/list]

Я хочу получить значение после повторной загрузки страницы. Пожалуйста, помогите мне. Спасибо.
Подробнее здесь: https://stackoverflow.com/questions/781 ... ing-jquery
Мобильная версия