Does anyone know how to make it so that when i do.
It doesnt scroll to the top of the page?HTML Code:<a href="#" onclick="loadit('index.php');">Click</a>
(I dont want to use <a href="javascript:loadit('index.php');">Click</a>)
Printable View
Does anyone know how to make it so that when i do.
It doesnt scroll to the top of the page?HTML Code:<a href="#" onclick="loadit('index.php');">Click</a>
(I dont want to use <a href="javascript:loadit('index.php');">Click</a>)
i know..
Im asking if anyone knows how to stop it jumping to the id.
You cant...
Edit:
btw, you dont have to use a href. You could just do an id and in css make the cursor the same as if hovering over a link.
would
work? (ie the void wouldnt interrupt the onclick attrb.?)PHP Code:<a href="javascript:void(0)">Click</a>