Is it possible to change the url of the popup.
Assume I open a popup:
function pop1(){
window.open('http://google.com','wind1');
}
Can the url of the popup window 'wind1' be changed to say 'http://msn.com'. Something with location.href or any other solution.
just using window. open(with out any function) in html solved my problem. When i type page1. html in browser address,it opens google page as a popup.
open("myPopupWindow. html", "_blank", "height=400, width=550, status=yes, toolbar=no, menubar=no, location=no, addressbar=no, top=200, left=300");
The syntax to open a popup is: window. open(url, name, params) : url. An URL to load into the new window.
var w1 = window.open('http://www.canop.org','wind1');
w1.location.href='http://www.google.com';
in the new popup window use this :
$(document).ready(function(){ window.parent.location="http://www.google.com" })
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With