|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
I am using for my pages this external js file:
Code:
<SCRIPT LANGUAGE="JavaScript"><!--
function back() {
history.go(-1);
}
//--></SCRIPT>
and in my pages I have this link: Code:
Back My problem is, that I am not happy with it's accessibility, so I would like to ask here if someone can help me, because I am not good so good in Javascript. I need to have included somewhere the functions "onKeyPress" and "onClick" and if possible in the above external script. Can someone help me please? I would be very greatful! Thanks in advance.
__________________
"Being an expert isn't telling other people what you know. It's understanding what questions to ask, and flexibly applying your knowledge to the specific situation at hand. Being an expert means providing sensible, highly contextual direction." Jeff Atwood SEO Workers - Search Engine Optimization Consulting Company | SEO Analysis Tool | Webnauts Net SEO |
|
|||
|
I don't understand what you are asking for here. Why do you need to add onKeyPress and onClick functionality to the link? It's already there. When you click the link that is an "onClick" and the "back()" function will fire. Also, if the link has focus and you press Enter that is an "onkeypress" and the "back()" function will fire. You can try it yourself to confirm it. Was there something I'm missing about your request?
|
|
||||
|
I take it you are not happy with having to include that file in every html doc you create. Here is a simple way of doing the same function without the script page.
Just type your back links like this: Code:
Back Code:
Back Code:
Back
__________________
Daniel M: South West Styles/STEELid daniel@steelid.com http://www.steelid.com http://www.thephototool.com |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |