Forum Moderators: open

Message Too Old, No Replies

How to Create a Pop-up Window

Can Anyone Provide Me the Code?

         

webgaya

5:32 am on Apr 18, 2006 (gmt 0)

10+ Year Member



I want to learn how to create pop-ups
using JS. I extracted following code
(URL is not the actual one),

<a href="#" onclick="MM_openBrWindow
('http://www.site-name.com/the-page.html',
'name','scrollbars=yes,resizable=yes,
width=540,height=325')">Anchor Text</a>

I assume that MM_openBrWindow
is a method in JS and the URL
is the page that I want to display.

Can anyone provide me the "complete code"
to implement this?

Are these popups blocked by certain
software? How can I instruct users
to view them (Press Shift Key while
clicking the link etc)?

jalarie

1:03 pm on Apr 18, 2006 (gmt 0)

10+ Year Member



I believe that the site where you pulled that code had a function called "MM_openBrWindow" which did the actual popup. Try this:

<a href="#" onclick="window.open('http://www.site-name.com/the-page.html','name','scrollbars=yes,resizable=yes,width=540,height=325')">Anchor Text</a>

webgaya

7:19 pm on Apr 19, 2006 (gmt 0)

10+ Year Member



Thank you jalarie!