By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,694 Members | 1,622 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,694 IT Pros & Developers. It's quick & easy.

Popup div

P: 14
Hi,

I have one html page, if I open that page, onload it has to open one new popup window (it should be div) inside the popup it should display google page. How to do that...

I tried in javascript, but its opening in a window, but i wanted to open in div.

Please help me

Expand|Select|Wrap|Line Numbers
  1.  
  2. <script>
  3. function showMe()
  4. {
  5. window.open('http://www.google.co.in/','','toolbar=0,scrollbars=0,location=0,statusbar=0,men ubar=0,resizable=0,width=500,height=200,left = 262,top = 284');
  6.  
  7. }
  8. </script>
  9.  
Sep 17 '08 #1
Share this Question
Share on Google+
1 Reply


Dormilich
Expert Mod 5K+
P: 8,639
well, window.open() does indeed open a new window (that's what it is supposed to do). Opening a complete webpage in a div is not recommended, since it violates the html syntax. the only way to open a webpage in a div is using an iframe inside the div, but the you can drop the div as well.
Sep 17 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.