Forum Moderators: open

Message Too Old, No Replies

How to change this new window

from under to over

         

stu2

2:36 am on Jul 2, 2006 (gmt 0)

10+ Year Member



javascript:/* whois highlighted text or current site */ function h(){if (document.getSelection) {R=document.getSelection();} else if (document.selection && document.selection.createRange) {Q=document.selection.createRange();var R=Q.text;};var w='http://www.iwhois.com/';if(!R){var u=window.parent.location.href;var a1=u.split('/');var a2=a1[2].split('.');var s=a2[a2.length-2]+'.'+a2[a2.length-1];w+=s;} else {w+='index.php?domain='+escape(R)+'&tld=com&lookup=Lookup&clean=1';}; window.open(w,'i');}h();

Bernard Marx

11:02 am on Jul 2, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I assume this is a bookmarklet (yes?). Nice too .

I my test, the window opened on top, and there's nothing in the script to suggest it should do otherwise.

..?

texmex

7:56 pm on Jul 2, 2006 (gmt 0)

10+ Year Member



If you run bookmarklets from Firefox, that open new windows, Once the javascript has finished, firefox will return focus to the window that ran the code.

I don't think there is anything you can do to stop this. I've written quite a few of them and they all exhibit this behaviour.

stu2

1:30 am on Jul 10, 2006 (gmt 0)

10+ Year Member



OK. Thanks for the feedback.

Just FYI. iWhois claim not to use or sell your search results unlike some more dubious operations. It's also pretty cool giving you the registrar and registry info. It's clean and neat too.