Getting Value From Popup Window Using only JS & HTML

前端 未结 1 589
有刺的猬
有刺的猬 2021-01-24 03:16

Is it possible to get a value from a popup window? Additionally I would like to use JS and HTML only, i.e. no PHP. Is this even possible? I\'ve seen other posts on here like thi

1条回答
  •  长发绾君心
    2021-01-24 03:25

    It works for me (using Firefox 20.0). But the code is really ugly and old though, probably you should study the present standards of MSDN Window to understand how it works in firefox (Window object may change its behaviour in other browsers). Ah, and of course the ECMAScript . But to introuduce one of the multiple solutions, you could try this:
    parent.html

    
    
    
      
    

    maps.html (I changed the extension!)

    
    
    
    
    

    0 讨论(0)
提交回复
热议问题