Solved

cancel button functionality

Posted on 2001-08-06
2
157 Views
Last Modified: 2006-11-17
the below script is working fine in netscape(4.7) & IE
but is not working fine in netscape6.0

<a href='javascript:history.back(-1)'>Cancel</a>

i want script to work in all the three browsers

thank you
0
Comment
Question by:geetash
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Accepted Solution

by:
a.marsh earned 40 total points
ID: 6355548
Use either:

<a href="javascript: history.back();">Cancel</a>

or

<a href="javascript: history.go(-1);">Cancel</a>


:o)

Ant
0
 

Expert Comment

by:ComTech
ID: 6642151
Abandoned question has been awarded.

Best regards,
ComTech
Community Support Moderator
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
href return to normal window 5 31
How Close unsubmited attempts 10 46
javascript and jquery question 4 26
disable open new tab with right mouse click in <a> tag 3 19
I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question