javascript link

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View


Can someone help me please?

Someone has a link to my page:
<a href ="JavaScript:openWindow(' ', 700, 500)"
Quoted text here. Click to load it

I hate that!  Not only do they mess with people's browser-size, but
the address url is also missing.  Real yuk.

Can I have something on my page to fix/correct or refuse entry?



Re: javascript link

With neither quill nor qualm, Sid Ismail quothed:

Quoted text here. Click to load it

Off the top o' me head, it should be something as simple as:

  if (opener) window.close();

I used to play with windows a lot and will did into the ol' archives if
the former fails.

Contrary to popular belief, it is believable.

Re: javascript link

Sid Ismail wrote:

Quoted text here. Click to load it

Do it server-side.  This is easy in .htaccess (if you're under Apache)
or you can use some server-side scripting to look at HTTP_REFERER

Site Timeline