Get current url of the popup window with javascript

后端 未结 2 823
南方客
南方客 2020-12-20 18:06

I had a webpage with a link, which opens a new page in a popup window. Everything is fine till here, The popup window contains credit card payment page held by some 3rd part

2条回答
  •  不思量自难忘°
    2020-12-20 18:12

    Google is your friend ;D

     var newURL = window.location.protocol + "://" + window.location.host + "/" 
                  + window.location.pathname;
    

提交回复
热议问题