Sunday, September 16, 2012

hash tag in iframe issue in chrome browser.


Hi friends,

Issue :  script load double times ;

We got this issue in chrome only.
As  we go through the code , we found that there were iframe wirh src="#" in internal include php files.
What chrome browser does, it hit the parent URL again.

So do not use the hash tag(#).

You can test this with below html code.


<html><body>
<script>
alert("hello")
</script>

<iframe src="#" style="display:none;"></iframe>

<h1>It works!</h1>
<p>This is the default web page for this server.</p>
<p>The web server software is running but no content has been added, yet.</p>
</body></html>

No comments:

Post a Comment