I'm using this code..
Code: Select all
<a href="JavaScript:document.getElementById('bob').src='newbob.php';">change bob</a>BUT. Instead of changing the SRC like I want the entire page gets replaced with the newbob.php file.
Is there a way to stop this.. or is there something I've missed from the code?
I won't go into reasons why I need to do things this way but I do
Any help would be great. Thanks.