Hi friends,
How to open a pop up page of 500px aligned to center when it pops up at the link button click event?
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Pravin Patil60 reputationPosted Oct 9, 2011, 11:13 PM EDT
Pravin Patil60 reputationPosted Oct 9, 2011, 10:18 PM EDT
http://www.javascript-coder.com/window-popup/javascript-window-open.phtml
This function takes the size as an parameter, there you can mention that you want to show the pop up of 500px. Also whatever pop is shown by this function, that will appear at the center.
For showing the pop on the click of link button you can refer http://forums.asp.net/t/1099918.aspx/1
Hope this helps.
All the best.
Nethra R SRank #6,347 · 269 reputationPosted Oct 9, 2011, 10:34 PM EDT
I want the pop up page to open in the centre exactly... how can i do that please help
Pravin Patil60 reputationPosted Oct 9, 2011, 11:06 PM EDT
Nethra R SRank #6,347 · 269 reputationPosted Oct 9, 2011, 11:10 PM EDT
I am already using this code:
...
In this only how can i amke adjustment so that pop up page opens exactly in the centre
Nethra R SRank #6,347 · 269 reputationPosted Oct 9, 2011, 11:24 PM EDT
Pravin Patil60 reputationPosted Oct 9, 2011, 11:31 PM EDT
Nethra R SRank #6,347 · 269 reputationPosted Oct 10, 2011, 1:37 AM EDT
The code does not work in IE
It gives invalid argument run time error in IE only. Rest all browsers ok
Pravin Patil60 reputationPosted Oct 10, 2011, 5:52 AM EDT