javascript:
- location.href("somefile.php"); // successfully working with IE
- location.href = "somefile.php";
Ques 1. first code is not work with Safari. Why?
Ques 2. What is the difference b/w these codes.
Thanks,
javascript:
Ques 1. first code is not work with Safari. Why?
Ques 2. What is the difference b/w these codes.
Thanks,
i never heard of location.href("somefile.php");
... location.href = "somefile.php";
is the "normal" way that you should use.
href
is not a method, it is a property whose value is a string.See also: http://www.w3.org/TR/Window/#location