Window.open(href, windowname, 'width=400,height=200,scrollbars=yes') įor now, we’ll skip the details of how the script works–although we’ll come back to them in the section Under the Hood: Details of the Popup Script for a line-by-line description–and move to the next step. If (typeof(mylink) = 'string') href=mylink For more details, see Under the Hood: Details of the Popup Script.įirst, copy this script into the “ section of your page: In this section we’ll show the code with just the minimal description you need to get it going. The code in this page creates a popup that is opened from a link. Everything for the rest of the tutorial is a variation on the theme described here. Different links can target the same popup. The technique described here addresses all the major issues in popups. We’ll begin the tutorial by creating a basic popup window.
0 Comments
Leave a Reply. |