I hade no idea where to post this so....
I have made a quick html for an active desktop, but I use
JavaScript and on the link that activates the script it not
only activates the script but opens the same page in an
extra browser.

eg.
<a href="#" onClick="rest();">Click Here</a>
when the user clicks "Click Here" not only is the rest();
function run but a window with the same html file pops up.
Is there any code I can pop into my HTML so that no extra
page is activated, thank you for the help.