Write Your Own Modal Window Script

ModalWindow’s are pretty popular things these days. And they aren’t very difficult to do. In-fact, I would have to say that they are easier to do by hand, then to do by JavaScript inclusion. That could depend on how complex of a Modal Window you are trying to make, but take a look at the following script. The number of problems to solve are not that cumbersome. With this, you can click here and get a pop up modal window. You can also add the modal source yourself, that way you can configure whatever HTML you would like inside of it, in this particular example, I am using jQuery DOM manipulation because I have this setup as a plugin for another site that I am working on. Just tag the “modalClick” class to the link and Enjoy!

Example Modal Window Link


‘, ‘html’, $content);

About Phillihp Harmon

I'm Phillihp. My name can be spelled the same way forwards and backwards, so can my posts... if you wish. I'm out here exploring, learning, and sharing what I find. This is more for fun and personal growth, I aim to be as consistent as possible, so check back daily!
This entry was posted in **, Browsers, DIY, HTML5/CSS3, Internet, JavaScript. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *