Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

window.href for all browser

Tags:

How can i replace window.href = "someurlhtml" for firefox and IE support ?

like image 639
Shyju Avatar asked Oct 08 '09 11:10

Shyju


People also ask

Does window location work in all browsers?

All modern browsers map document. location to the window. location but you can prefer window.

How do I get a current window href?

Answer: Use the window. location. href Property location. href property to get the entire URL of the current page which includes host name, query string, fragment identifier, etc.

How do I send POST request using Windows href?

Using window. location. href it's not possible to send a POST request. What you have to do is to set up a form tag with data fields in it, set the action attribute of the form to the URL and the method attribute to POST, then call the submit method on the form tag.


1 Answers

window.location.href = "someurl"; 
like image 200
Warren Young Avatar answered Oct 02 '22 12:10

Warren Young