Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

anchor scroll - interesting

Status
Not open for further replies.

metamind

Programmer
Jul 15, 2004
20
GB
hi

options to trigger script:
i. a link. eg <a href="#" onclick="doStuff">save</a>
cons: causes the page to scroll to the top when clicked

ii. a span. eg <span onclick="doStuff">save</span>
cons: when tabbing out of the textarea the focus does not stop on the save "link"

Any ideas on stopping the scrolling i.; getting the tabs to stop for ii.; or any other ideas welcome.

 
Code:
<a href="#" onclick="doStuff()[!];return false[/!]">

-kaht

[small](All puppies have now found loving homes, thanks for all who showed interest)[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top