Closing a Window using JavaScript in iScript on Button Click

Here’s a code snippet that you can use to close a modal window on click of either a button/image on the window. This would be useful in places where you have only HTML content. The following code snipped uses an image as an hyperlink on a new window which would close upon clicking on the image

<img border='0' src="<your image definition goes here>" onclick="window.close();"/>

Hope this helps! 🙂

Advertisements

About Manikandan Surendren

A PeopleSoft Techno-functional Consultant. An engineering graduate in Computer Science. Technology Enthusiast. Movie freak. Gadget geek.
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s