Simulate the IE backward button

M

Mick

Hi,
Is there a way to simulate the IE backward button behaviour with Asp.Net ?

thks for help.
 
M

Mick

here is the code I tried... and it doesn't work !!
Response.Write("<script language=javascript>");

Response.Write("history.go(-1);");

Response.Write("</script>");
 
H

Hans Kesting

Mick said:
here is the code I tried... and it doesn't work !!
Response.Write("<script language=javascript>");

Response.Write("history.go(-1);");

Response.Write("</script>");

Try a "history.go(-2)".
You are writing a new page (as far as the browser is concerned),
so a -1 does return you to the previous page AS SEEN FROM THIS NEW page.

NB: usually you can't mix Response.Write() and the usual asp.net output.
 

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

Top