Myra Fletcher
Myra Fletcher

Reputation: 137

URL open new window adjust size

I am using a map on my website. When you click a link on the map it opens a new window. The rest of the site uses colorbox to open new links so in a desire to keep it close to that in appearance, I would like the new window that opens to be more like a popup not like a new tab. Currently I just have this:

url_new_tab: 'yes',

Any help would be appreciated.

Upvotes: 1

Views: 777

Answers (2)

Myra Fletcher
Myra Fletcher

Reputation: 137

I figured it out for anyone having the same issue:

url: "javascript:'onclick'=window.open('url_here', '_blank','width=800, height=500');",

Upvotes: 0

Remya Murali
Remya Murali

Reputation: 226

colorbox is good idea.

otherwise you may use

window.open('your_url', '_blank', 'width=600, height=300');

Upvotes: 1

Related Questions