It’s pretty easy:
window.location = "http://www.google.com";
😉
Related Posts:
- How to prevent the “Confirm Form Resubmission” dialog?
- laravel updateOrCreate method
- Call PHP function from jQuery?
- PHP + JQuery – How to use these two together? Please see my example
- wordpress menu dropdown item not showing after first dropdown
- How to set 777 permission on a particular folder? [closed]
- regex match any whitespace
- PHP page redirect
- How do I resolve a HTTP 414 “Request URI too long” error?
- xajax expanding list query
- Data source name not found, and no default driver specified
- Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, object given in
- mcrypt is deprecated, what is the alternative?
- Resize image in PHP
- How to replace “if” statement with a ternary operator ( ? : )?
- why use 0xffff over 65535
- .rar, .zip files MIME Type
- PDO bindParam() with prepared statement isn’t working
- HTML Element Array, name=”something[]” or name=”something”?
- Why use $_SERVER[‘PHP_SELF’] instead of “”
- Setting up a PHP interpreter in PhpStorm
- Could not open input file: artisan
- Why php tag is not working in html file?
- What’s the use of ob_start() in php?
- PHP: variables in strings without concatenation
- How to create cron job using PHP?
- Imploding an associative array in PHP
- curl POST format for CURLOPT_POSTFIELDS
- Can’t use method return value in write context
- PHP get domain name
- How to solve “Fatal error: Class ‘MySQLi’ not found”?
- Running a Python script from PHP
- Object of class DateTime could not be converted to string
- HTTP Error 411, The request must be chunked or have a content length
- mysqli::query(): Couldn’t fetch mysqli
- NotFoundHttpException in RouteCollection.php line 161: in laravel 5
- Easy way to password-protect php page
- Html encode in PHP
- file_put_contents: Failed to open stream, no such file or directory
- PHP $_POST not working?
- PHP cURL HTTP PUT
- Convert timestamp to readable date/time PHP
- PHP sessions that have already been started
- Check if URL has certain string with PHP
- Subtracting days, months or years from date using php
- Only on Firefox “Loading failed for the script with source”
- Laravel – Model Class not found
- Fatal error: Call to a member function fetch_assoc() on a non-object
- Strict Standards: Only variables should be assigned by reference PHP 5.4
- mysqlworkbench giving version error on exporting database
- Steam Market API?
- PHP Multiple Checkbox Array
- Session variables not working php
- Get JSON object from URL
- How to push both value and key into PHP array
- Find the last element of an array while using a foreach loop in PHP
- Popup window in PHP?
- Most efficient way to add javascript file to specific post and/or pages?
- jQuery functions only work on homepage
- Add jQuery to WordPress page
- How can I loop into two different DIVS without repeating the DIVs
- how to include a simple jquery file into a wordpress plugin
- Using wp_localize_script to store the template url into a variable to use in JS
- Colorbox ajax loading of outside HTML content works perfect on localhost but not on server
- How to show a dynamic_sidebar if main content content’s height is > a set amount?
- wordpress count link clicks by ip address
- Post repeating with infinite scroll
- WordPress Ajax Call inserting data but success response false
- How can i display a jquery slide on front page
- Unset session variable on page reload / setup but exclude AJAX
- Execute Jquery when a specific page in my plugin is loading
- what does $options = get_option(‘test_theme’); do?
- Validating an email input from form field before submit using JQuery, AJAX, and PHP
- Custom html/php/jquery map code in WordPress/elementor?
- Ajax on the Administration Side of plugin – wp_localize_script – how to pass value from JQuery to PHP function in class?
- How to check a variable Changes
- WP Ajax DB issues
- Customize the “Available for back order” text for specific variation
- If user has clicked link add class and store using PHP/WordPress
- How can i send id of the currently posted form data through json response in custom wordpress plugin?
- Cannot successfully execute AJAX script to call function.php specific function. Using XAMPP localhost to test
- How to create an Email Subscription input in WordPress?
- Styling a specific post after hovering over it
- Remove item from post_meta array via AJAX
- PHP array to jQuery array ” Uncaught SyntaxError: Unexpected token < "
- defined (‘ABSPATH’) false after AJAX post to other PHP-file
- wordpress ajax pagination
- AJAX Not Working With WordPress Database properly
- 500 (Internal Server Error) of external php file
- Use jQuery and AJAX to get HTML
- Dynamic Gallery
- Missing items on page
- PHP and Jquery pass value from form. Update function on DataBase
- jQuery vs. $ – Creating jQuery scripts in JavaScript in WordPress using External Libraries
- Loading a post’s content, into a div outside the loop, when it’s title is selected in a list
- Plugin use of ajax/jquery depending dropdown
- Cannot get custom javascript to execute on page
- Jquery autosave text area after typing
- Pass a PHP variable (loop-audio.php) to jQuery function (js/script.js)
- generate excerpt from the part of big text dump that contains keyword