Код: Выделить всё
Предположим, это был HTML-код iFrame:
Код: Выделить всё
// The variable below would change on click
// This represents changes on variables after the code is loaded
// These changes should remain after the iFrame is moved
variableThatChanges = false;
$(function(){
$("body").click(function(){
variableThatChanges = true;
});
});
Illustrative Example
Мой вопрос заключается в следующем: < Strong>с помощью JavaScript (с jQuery или без него), как я могу переместить узлы переноса в DOM (и их дочерние элементы iframe), чтобы окно iFrame оставалось прежним, а события/переменные/и т. д. iFrame оставались прежними то же самое?
Подробнее здесь: https://stackoverflow.com/questions/831 ... -its-state
Мобильная версия