johnnyk Posted July 27, 2006 Share Posted July 27, 2006 Why isn't this working:function directions(id){ window.open('\"directions.html?id=' + id + '\",\"directions\",\"toolbar=no, location=no, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=no, width=500, height=400\"')} Quote Link to comment Share on other sites More sharing options...
nogray Posted July 27, 2006 Share Posted July 27, 2006 [code]function directions(id){ window.open("directions.html?id=" + id,"directions","toolbar=no, location=no, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=no, width=500, height=400");}[/code] Quote Link to comment Share on other sites More sharing options...
johnnyk Posted July 27, 2006 Author Share Posted July 27, 2006 If you don't mind, how about one more I can't figure out:[code]function picture(img,width,height){ window.open("pictures2b.html?img=" + img,"picture","toolbar=no, location=no, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=no, width=" + width + ", height=" + height);}[/code]I'm no good at Javascript.::tear:: Quote Link to comment Share on other sites More sharing options...
nogray Posted July 27, 2006 Share Posted July 27, 2006 this looks fine, post the code you use when you call this function. Quote Link to comment Share on other sites More sharing options...
johnnyk Posted July 27, 2006 Author Share Posted July 27, 2006 Ahh, there was a problem in the HTML (...target="picture"...). Thanks for the help. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.