Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Window.Navigate Method Not Working in Firefox and Chrome [duplicate]

Possible Duplicate:
button javasript works on IE but not firefox window.navigate()

I want pass Question ID to Answer Page Along with URL but it's not working on Chrome and Firefox I'm using ASP.Net,


Navigate Method is not working , what are other methods for this ?


function display(QuestionID)

{

 window.navigate("Answer.aspx?TutID=" + QuestionID);

}

please Help

like image 589
Deepak S V Avatar asked Oct 16 '25 07:10

Deepak S V


1 Answers

Try this:

var url = "Answer.aspx?TutID=" + QuestionID;

location.href = url;
like image 148
Amin Sayed Avatar answered Oct 17 '25 21:10

Amin Sayed