iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
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

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-22-2004, 09:43 PM
Webnauts's Avatar
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: Aug 2003
Location: Worldwide
Posts: 8,170
Webnauts RepRank 9Webnauts RepRank 9Webnauts RepRank 9Webnauts RepRank 9Webnauts RepRank 9Webnauts RepRank 9Webnauts RepRank 9Webnauts RepRank 9Webnauts RepRank 9Webnauts RepRank 9
Default Help! "history.go(-1)" and accessibility

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
Reply With Quote
  #2 (permalink)  
Old 07-24-2004, 10:21 AM
WebProWorld Member
 
Join Date: Mar 2004
Location: Birmingham, Alabama
Posts: 30
sslcheap RepRank 0
Default

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?
__________________
Geotrust SSL Certificates
http://sslcheap.com
Reply With Quote
  #3 (permalink)  
Old 07-26-2004, 12:54 PM
swstyles's Avatar
WebProWorld Member
 
Join Date: Aug 2003
Location: Phoenix, AZ
Posts: 96
swstyles RepRank 0
Default

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
OR

Code:
Back
OR

Code:
Back
Hope this helps
__________________
Daniel M: South West Styles/STEELid
daniel@steelid.com
http://www.steelid.com
http://www.thephototool.com
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 06:52 PM.



Search Engine Optimization by vBSEO 3.3.0