Hey all,
I'm working on a project combining a javascript bookmarklet and a php script that lets users mail the url of the site they are currently browsing to their email address.
I had a PHP issue solved over in the PHP forum:
http://www.daniweb.com/forums/thread202375.html
But now I have a new bug. The script/bookmarklet works fine on Chrome and Firefox in Windows and opens a popup without taking the user away from the page, but on a mac in Firefox, it takes the user away from the page they are browsing AND opens the popup. The new page is a print out of the javascript bookmarklet. Has anybody seen this before? Here is the bookmarklet as it is now:
javascript:
var url = encodeURIComponent(window.location.href);
var user = 'youremail@domain.com';
var title = document.title;
alert(url + '\n' + title); window.open('http://www.playground.nudebeachfilms.org/mailurl/mail.php?url=' + url + '&user=' + user + '&title=' + title,'mywindow','width = 400, height = 250');
Also, after using the bookmarklet, all of my "restore down" browser windows are 400 by 250. Is there a way to open up a popup of a certain size and not have the size saved as the default size for non-full-screen browser windows?