problems with history.back()

D

Daniel

Hi all.

I have an application that a person needs to login first and then runs with
the following command:

function popupApplication()
{
var str = 'left=0,top=0,screenX=0,screenY=0,resizable=yes';
str += ",toolbar=no,directories=no,status=no,menubar=no,scrollbars=no"
if (window.screen)
{
var ah = screen.availHeight - 30;
var aw = screen.availWidth - 10;
str += ',height=' + ah;
str += ',width=' + aw;
}
win=window.open('/home/default.jsp', "Application", str);
win.focus();
}


This pops up a new IE window, with no IE buttons, url location, or status
bar. I noticed then that I could not use the following function in the
pages. I want to be able to have a back button on a page, as follows:

function back()
{
history.back();
}


<input type="button" name="btnBack" value="back one page" onClick='back()'>


But this does not work. I tried it on a *blank* page, and it works.

I noticed that if I did this in popupApplication(): window.location(
'/home/default.jsp' ) instead of window.open, then I could see all the IE
buttons, and the back button would work.

Does anybody know the answer?


Thanks in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,145
Messages
2,570,826
Members
47,371
Latest member
Brkaa

Latest Threads

Top