Solved

cancel button functionality

Posted on 2001-08-06
2
155 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
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Today I would like to talk about localizing (Internationalization) JavaScript applications. Introduction When creating an application that is going to be used by many people around the globe, it is important to remember that not everyone speak…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…

810 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