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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

history.back / history.go does not work in Netscape

Status
Not open for further replies.

jillallynwilson

Programmer
Apr 14, 2004
21
US
My company's site uses little pop-up windows to get customer input for maintaining their product inventory, such as a location of the product. In Netscape, after the pop-up is opened and then closed the browser's 'Back' button and a javascript (onClick="history.back()") button do not work. Can anyone offer a solution to this? Everything works fine in IE.

We have tried adding the "-1" to the onClick code (onClick="history.back(-1))") with no luck.

Thank you advanced to everyone!!! :eek:)
 
Thank you Dan for your suggestion. I tried the history.go(-1); instead of the back and it did not make a difference. My javascript back button does not work and neither does the browsers back button.

Is it possible that the javascript code that generates the pop-up window is causing the problem. Here is the update code:

function update(unid, cylinder, loc, pressure, holdloc, holdpress)
{
var df = window.document.CylinderDetails;
if (holdloc == loc)
{
if (holdpress == pressure)
{
alert("Location and Pressure have not changed. No update is required.");
}
else
{
executeupdate(unid, cylinder, loc, pressure)
}
}
else
{
executeupdate(unid, cylinder, loc, pressure)
}
}

function executeupdate(unid, cylinder, loc, pressure)
{
var df = window.document.CylinderDetails;
var newwin;
if (loc == "")
{
if (pressure == "")
{
alert("Location and Pressure are both blank. No update is required.");
}
else
{
newwin = window.open("/<CODE CHANGED FOR POSTING>/(UpdateLocPress)?OpenAgent&UNID=" +unid + "&Cyl=" + cylinder + "&location=" + Loc + "&Pressure=" + pressure, "DataUpdate","width=400,height=150, status=yes,resizable=yes");
newwin.focus();
history.go();
}
}
else
{
newwin = window.open("/<CODE CHANGED FOR POSTING>/(UpdateLocPress)?OpenAgent&UNID=" +unid + "&Cyl=" + cylinder + "&Location=" + loc + "&Pressure=" + pressure, "DataUpdate","width=400,height=150, status=yes,resizable=yes");
newwin.focus();
history.go();
}
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top