tags:

views:

25

answers:

3

Hi,

I want to have a link or something which could be inserted in an email/forum etc. It's a typical url. But I would like that link to be opened in a custom sized new browser window ( say 800 x 600 ) . It sounds weird, but that is the requirement. Can it be achieved somehow?

Thanks

A: 

In an email?

You can't. Email clients insane enough to execute JavaScript are all by unheard of.

In a forum?

Assuming you aren't the administrator of it, you can't. Forums insane enough to encourage XSS attacks are, again, all but unheard of.

David Dorward
A: 

If you absolutely have to, you could link from an email or forum post to a page that executes the new window function.

This page should also include a non-JavaScript way to access the information that would be in the 800 x 600 window.

This way, people who are running popup blockers or otherwise preventing this behavior won't be annoyed by a new window opening and your managers will get the behavior they're requesting.

twernt
A: 

Ok. This is how we could kinda achieve this. Let that link be a normal link. It would contain the custom code to create a desired popup on invocation. But the issue is popup blocker in browser. But they somehow liked it.So basically a page opens up which launches the popup without user interference.

Rakesh