Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

open javascript new window...

Status
Not open for further replies.

rrmcguire

Programmer
Oct 13, 2010
304
US
at my page at within the customer referrals in my HTML which beings with the variable marqueecontent,

is it possible to open a new window with the links, similar to this

"javascript:NewWindow=window.open('customerletterblowup.swf','newWin','width=800,height=300); NewWindow.focus();void(0);
 
javascript
Code:
function popUp(URL, w, h)
{
	eval("popup = window.open(URL, 'popup', 'width=" + w + ",height=" + h + "');");	
}

<a href="#" onclick="popup('customerletterblowup.swf', 800, 300);">link</a>

or, without a function, simply.

Code:
<a href="#" onclick="window.open('customerletterblowup.swf', 'WindowTitle', 'width=800,height=300');">link</a>

-Geates

"I hope I can chill and see the change - stop the bleed inside and feel again. Cut the chain of lies you've been feeding my veins; I've got nothing to say to you!"
-Infected Mushroom

"I do not offer answers, only considerations."
- Geates's Disclaimer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top