I'm trying to implement Photobucket's Jwidget into a site. The Jwidget docs are here: http://pic.photobucket.com/mediaplugin/Media_Plugin_v2_0_FINAL.pdf On page 16 and 17 (advanced implementation) there are these two snippets of code: <script type="text/javascript"> window.onload = function() { parent.parent.photobucket_complete(getParameter(document.location.href, "url")); }; function getParameter ( queryString, parameterName ) { var parameterName = parameterName + "="; if ( queryString.length > 0 ) { begin = queryString.indexOf ( parameterName ); if ( begin != -1 ) { begin += parameterName.length; end = queryString.indexOf ( "&" , begin ); if ( end == -1 ) { end = queryString.length } return unescape ( queryString.substring ( begin, end ) ); } return ""; } } </script> and <script type="text/javascript"> var seedurl="http://partnersite.com/partnersite/callback.html"; window.onload = function() { loadiframe(); }; function loadiframe() { nurl = escape(seedurl); //Goto Jwidget Location document.getElementById('jwidget').src= 'http://photobucket.com/svc/jwidget.php?url='+nurl; } function photobucket_complete(inurl) { //ADD JAVASCRIPT TO MANIPULATE YOUR SITE WITH THE IMAGE URL //PASSED FROM THE JWIDGET } </script> Each goes in a separate page. My question is, what code do I need to place where it says ADD JAVASCRIPT TO MANIPULATE...etc... What I want is for the IMAGE URL to be passed via javascript when the user clicks on the Jwidget PASTE IMAGE to another place on the same page. Anyone care to lend a hand? Thank you.