 <p>I think it has something to do with javascript happening AFTER php happens. </p> <p>Why not switch it with</p> <p>include('<a href="http://www.website.com/file/index.php" rel="nofollow">http://www.website.com/file/index.php</a>');</p> <p>if your hiding that div you could just use javascript to show / hide the div based on what ever happens. Dont try to lead the php file when its hovered or clicked or w/e. Load it first and just display it with js.</p>