JavaScript Text Link Image Viewer

The following script brings up a new window, that contains an image, just by clicking a text link.

Example

Click our picture viewer!

Script Source

<Under the head section>

<script type="text/javascript">

<!-- Hide the script from old browsers

function newWindow() {

window.open("https://www.wizzardweb.co.uk/javascript/images/logo.jpg", "logoWindow",
"status = 1, height = 300, width = 300, resizable = 0" )
}

// End hiding script from old browsers -->
</script>

<Under the body section>

<a href="javascript:newWindow()"> Click our picture viewer!</a>

 

Please let me know if this script was helpful to you.

[rating]