In this tutorial i will let u know difference between window.location.href
and window.open()
, both are very important way to redirect user to a target location,both function are commonly used by web developer.
I have explianed below about difference Between Window.location.href
and Window.open ()
methods in JavaScript.
window.open()
method This a JavaScript method, it takes a target URL as a parameter where you want to redirect user. This function also have many optional parameters. This method will open target URL in new window on browser.
For example:
window.open('http://google.com');
window.location.href
methodThis is not a method, it’s a property .This property tell to you the current URL location of the browser. This property used to set target URL and user will redirect the page in same window.
window.location.href = 'http://google.com';
This tutorial helps integrate a PHP SDK with Laravel. We'll install aws-php-sdk into laravel application and access all aws services… Read More
in this quick PHP tutorial, We'll discuss php_eol with examples. PHP_EOL is a predefined constant in PHP and represents an… Read More
This Laravel tutorial helps to understand table Relationships using Elequonte ORM. We'll explore laravel table Relationships usage and best practices… Read More
We'll explore different join methods of Laravel eloquent with examples. The join helps to fetch the data from multiple database… Read More
in this Laravel tutorial, We'll explore valet, which is a development environment for macOS minimalists. It's a lightweight Laravel development… Read More
I'll go through how to use soft delete in Laravel 10 in this post. The soft deletes are a method… Read More