Results 1 to 4 of 4
Feb 21, 2007, 12:32 #1
Feb 21, 2007, 13:17 #2
- Join Date
- Sep 2005
- 2 Post(s)
- 0 Thread(s)
document.location is the same as document.URL but is deprecated - you would need window.location.
In this instance I think a bit of tag soup is better than a popup. This means use of document.write, so people just put this on their site in the body where they want the link to appear:
Feb 21, 2007, 14:11 #3
The intended location of the code is actually in a firefox button on the bookmarks toolbar, with the intended result of a click being to open a popup window, so concerns about what other site owners would put into their pages don't matter.
The basic function needed is just to open a popup window containing a certain page, with url parameters containing the title and location of the page the user was on when the button was pressed.
Feb 21, 2007, 16:20 #4
After some more experimenting I've got this code to do basically what I want, with one problem. It works perfectly in IE, but in FF, the new pop-up window is below the original window, not above it as I would desire. Any ideas about how to fix this?
Looking at some examples of script that does this, it looks like I might have to define a as a function, then use this bit of code...
but I don't really understand what it does, and can't get it to work with my code above.
Any help much appreciated,