Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Digital Lifestyle
Web Design and Hosting
Need Help for Pop Up windows
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Murlyn" data-source="post: 8330" data-attributes="member: 184"><p>Ok here is my popup code...</p><p></p><p>[CODE]function popup( page, title, w, h, scroll ) {</p><p> if (!title) title = 'Popup';</p><p> if (!scroll) scroll = 'no';</p><p> if (!w) w = 500;</p><p> if (!h) h = 350;</p><p> var wintop = (screen.height - h) / 2;</p><p> var winleft = (screen.width - w) / 2;</p><p> var atts = 'width='+w+',height='+h+',scrollbars='+scroll+',resizable,screenX=150,screenY=150,top='+wintop+',left='+winleft+'';</p><p> win = window.open( page, title, atts);</p><p> if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }</p><p>}[/CODE]</p><p></p><p>When submitting to the parent window use</p><p></p><p>[CODE]top.opener.location.href[/CODE]</p><p></p><p>If you need more help please reply and we'll go through everything that you are doing.. it would help to see exactly what your code is.. maybe even a working example or at least the non working one <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>Cheers!</p></blockquote><p></p>
[QUOTE="Murlyn, post: 8330, member: 184"] Ok here is my popup code... [CODE]function popup( page, title, w, h, scroll ) { if (!title) title = 'Popup'; if (!scroll) scroll = 'no'; if (!w) w = 500; if (!h) h = 350; var wintop = (screen.height - h) / 2; var winleft = (screen.width - w) / 2; var atts = 'width='+w+',height='+h+',scrollbars='+scroll+',resizable,screenX=150,screenY=150,top='+wintop+',left='+winleft+''; win = window.open( page, title, atts); if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); } }[/CODE] When submitting to the parent window use [CODE]top.opener.location.href[/CODE] If you need more help please reply and we'll go through everything that you are doing.. it would help to see exactly what your code is.. maybe even a working example or at least the non working one :) Cheers! [/QUOTE]
Verification
Post reply
Forums
Digital Lifestyle
Web Design and Hosting
Need Help for Pop Up windows
Top