2 yabba Sep 17, 2009 13:25

Thanks, I did that but I still get the error page along with the pop up window.
The code now reads:
Click <a href="javascript:pop_up_window( 'http://XXXXX/XXXX/?p=subscribe', '', '400', '600', 'scrollbars=no, status=no, resizable=no, menubar=no')">here</a> to recieve regular updates.
Click <a href='http://gurcharansingh.co.uk/gsolist/?p=subscribe' onclick="return javascript:pop_up_window( this.href, '', '400', '600', 'scrollbars=no, status=no, resizable=no, menubar=no')">here</a> to recieve regular updates.
¥
Thanks but that just gives me the subscribe page in the main window without any popup...
I basically have 2 requirements here:
When the link is clicked:
1) The source page remains completely unchanged (this includes not needing to be refreshed)
2) The pop up window appears (with predefined settings e.g. width, height, etc.)
I hope this helps to clarify.
Sorry, remove the "javascript:" from onclick=" return javascript;"
¥
That's done it!!!
Thank you so much - reps coming your way!
R
No worries ;)
¥
function pop_up_window( href, target, width, height, params )
add '' before , '400'
¥