Bookmark in a new window

So, I have a bookmarklet that should open the page in a new window.

javascript:window.open('http://timetableapp.com/TimeTable/bookmarklet/index.html','TimeTable%20Timer','status=no,directories=no,location=no,resizable=no,menubar=no,width=400,height=210,toolbar=no'); 

The code works fine in Safari, Firefox, and Chrome; but as expected, IE (7 and 8) is causing problems. IE gives me a useless error when I open the bookmarklet and the window does not open.

I tried to edit the bookmarklet so that it adds a page with a script tag. Then the window.open () code is added inside the script tag or it refers to the script (which contains window.open ()) [I tried this in both directions]

Now I am at a loss.

Does anyone know how to get a popup in IE (preferably with code that works in Safari, FF and Chrome too)?

Thanks,

EDIT: The final code I got into:

 javascript:(function(){ window.open('http://timetableapp.com/TimeTable/bookmarklet/index.html','TimeTableTimer','status=no,directories=no,location=no,resizable=no,menubar=no,width=400,height=210,toolbar=no'); })(); 
+6
javascript internet-explorer popup bookmarklet
source share
1 answer

You cannot have% 20 or spaces in the name of your window. This name again refers to the window later in the code.

Try:

 javascript:window.open('http://timetableapp.com/TimeTable/bookmarklet/index.html','TimeTableTimer','status=no,directories=no,location=no,resizable=no,menubar=no,width=400,height=210,toolbar=no'); 
+6
source share

All Articles