أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.
Window.location.href is a property which provides the URL of the current. If it is set to a different URL than the one which you are currently on then the browser window redirects to that page. Window.open is a method which gives you the option to open a page in new window. By setting parameters you can make it open in the same window.