Hi, All, As title says, I want to is it a bug? here is my html files.
When I change the parent window's hash in top.html, if the hash is different from parent's it will cause the whole frameset reload. I tried IE, Firefox, Safari and Chrome , both of the chrome and safari will reload the frameset. they both use webkit. Thanks! Best regards. reeze parent.html ------ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh_cn" lang="zh_cn"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="language" content="zh_cn" /> <title>Test</title> <script type="text/javascript" charset="utf-8"> function changeHash(hash) { window.location.hash = hash; } </script> </head> <frameset rows="96,*,18" name="skelecton" frameborder="no" border="0" framespacing="0"> <frame id="top_frame" name="top_frame" class="top" scrolling="no" noresize src="top.html"> <frame id="main" name="main" class="main" src="main.html" scrolling="auto" noresize /> <frame name="bottom" class="bottom" src="botton"; ?>" scrolling="no" noresize /> </frameset> </html> ------ main.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//ZH_CN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh_cn" lang="zh_cn"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="language" content="zh_cn" /> <title>Test</title> <script type="text/javascript" charset="utf-8"> alert("main called"); function makeit() { window.parent.location.hash = "?test-hash&&test"; } </script> </head> <body id="dfsf" onload=""> <button onclick="makeit();">Make it</button> </body> </html> ------ top.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//ZH_CN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh_cn" lang="zh_cn"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="language" content="zh_cn" /> <title>Test</title> <script type="text/javascript" charset="utf-8"> alert("top called"); function makeit() { window.parent.changeHash("hash1"); } function makeit2() { window.parent.changeHash("hash2"); } function update() { window.parent.location.hash = "?form-link"; return false; } function selfup() { window.location.hash = "seflup"; } </script> </head> <body id="asdddfs" onload=""> <button onclick="selfup();">selfup</button> <button onclick="update();">selfup2</button> <button onclick="makeit();">Make it</button> <button onclick="makeit2();">Make it 2</button> <a href="main.html" target="main" onclick="javascript:update ();">afssdfsdfsdffs</a> </body> </html> =========================== --~--~---------~--~----~------------~-------~--~----~ Chromium Discussion mailing list: [email protected] View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-discuss -~----------~----~----~----~------~----~------~--~---
