Take Note ไว้หน่อย ลืมไปหลายรอบละ - -"

I want to have a page spawn a pop-up when you click "submit" on its form. On this pop-up page there will be another form. When you click "submit" on the pop-up's form I want the pop-up to close & a new page to load in the "parent" window/page

I realize you have a form validation scripts involved (which you haven't provided), but just write the following logic into them:


Main Page:

Code:
window.open('somePage.html','','');">
Popup:

Code:
window.opener.location.href='yourNewPage.html';self.close();">
This will work in both browsers.


-james
http://www.codinforums.com/showthread.php?t=44015

Problem with window.opener in Firefox/Mozilla

อนึ่ง ช่วงนี้งาน(การบ้าน)ล้นมือ นึกเรื่องเขียนบลอคไม่ออก ตัน _ _"

Comment

Comment:

Tweet

Thanks for the article. I read the above post.

#1 By Chicgraphic on 2012-03-30 17:52