Forcing “Save As” dialog via jQuery GET
问题 I'm calling a jQuery "GET" on the test.php file code below. I'm trying to get the script to pop a "Save As" dialog on the resulting test.ini file to allow it to be saved locally. However, although I can echo the result back to the jQuery fine, I can't seem to pop the "save as" dialog. Update: Thanks to the solutions below, I just changed my $.get to a window.location.replace. $('#test').click( function() { //$.get('<?php echo get_bloginfo('template_directory') ?>/test.php'); window.location