location.href in javascript ?

Posted by Karandeep Singh on Stack Overflow See other posts from Stack Overflow or by Karandeep Singh
Published on 2010-06-05T13:18:25Z Indexed on 2010/06/05 13:22 UTC
Read the original article Hit count: 202

Filed under:
|
|
|
|

javascript:

  1. location.href("somefile.php"); // successfully working with IE
  2. 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,

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about safari