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="javascriptoadit('index.php');">Click</a>)

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="javascriptoadit('index.php');">Click</a>)
Coming and going...
Highers are getting the better of me
Its because your going to #, which is a span id for nothing. If you have like <span id="hello">YO</span> typed in #hello it would go to the text YO.
i know..
Im asking if anyone knows how to stop it jumping to the id.
Coming and going...
Highers are getting the better of me
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>
Coming and going...
Highers are getting the better of me
Want to hide these adverts? Register an account for free!