javascript - Unable to close the browser window -


मैं

  var childWindow = window.open ('test .php ',' परीक्षण ', गुण);  

test.php में मेरे पास डेटा सम्मिलित करने का एक फार्म है, बटन पर क्लिक करने के लिए क्लिक करें इस विंडो को बंद होना चाहिए। इसके लिए मैं window.close (); पर क्लिक करने के लिए बटन सबमिट कर रहा हूँ, लेकिन मैं खिड़की बंद करने में असमर्थ हूं। कृपया मेरी मदद करें ..

धन्यवाद।

इसलिए यदि आप एक विंडो खोलें:

  window.open ("test.php", "test");  

आप उस विंडो को बंद कर सकते हैं :

  window.close ("test");  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -