1
Как я могу предотвратить обновление IE страницы? Я хочу, чтобы вести себя как FF, SF & C. Поскольку это та же страница, она не должна загрузить ...Предотвращение IE от обновления страницы - iframe _top
Родительская страница:
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<p>This is the parent page. I don't want this page to reload in IE when the link in the iframe is clicked, since it break our javascript. I only want the "hash" to change.</p>
<iframe src="http://example.com/iframepage.html"></iframe>
</body>
</html>
Iframe страница:
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<p>This is the iframe page. The URL is the same as the parent page + anchorlink. When I klick this link in IE the page refresch and the javascript breaks. In FF, SF & C it doesn’t "refresh" page…</p>
<a href="http://www.example.com/test.html#test1" target="_top">test1</a>
</body>
</html>
К сожалению. HTML disipeard, когда я отправлял сообщения. URL-адрес родительской страницы: http://www.example.com/test.html Ссылка в iframe: a href = "http://www.example.com/test.html#test1" target = "_top"> test1 – Hakan 2010-12-08 14:52:38