I am using this link http://www.dynamicdrive.com/dynamicindex8/popwin.htm for the pop up window, i wanted to get it to work by clicking on an image... any ideas?
I am using this link http://www.dynamicdrive.com/dynamicindex8/popwin.htm for the pop up window, i wanted to get it to work by clicking on an image... any ideas?
HTML Code:<a href="http://www.google.com" onclick="NewWindow(this.href,'mywin','300','200','no','center');return false" onfocus="this.blur()"><img src="some.gif" border="0"></a>
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
I want the reader to have the ability to close the pop-up window once they finished reading it by click on a the words "Close Window" at the bottom section of the page. How do i do that?Originally Posted by jscheuer1
Well, if it is your own page, put this at the bottom:Originally Posted by terkini
If it is someone else's page, you are out of luck unless you can get them to put that code on their page.HTML Code:<a href="#" onclick="self.close();return false;">Close Window</a>
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Better yet, put this script at the bottom of the page:
That way, if the page is reached via another method other than javascript, the link to close it won't be displayed as, it wouldn't work anyway.Code:<script type="text/javascript"> if(this.opener) document.write('<a href="#" onclick="self.close();return false;">Close Window</a>') </script>
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Bookmarks