Popup div

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • srinathpandit
    New Member
    • Sep 2008
    • 14

    #1

    Popup div

    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

    Code:
    <script>
    function showMe()
    {
    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');
    
    }
    </script>
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    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.

    Comment

    Working...