Jump to content

help with opening new window


dadamssg

Recommended Posts

<div id="twitter" onclick="window.open("http://www.twitter.com/test")></div>

 

 

Should be

 

 

<div id="twitter" onclick="window.open('http://www.twitter.com/test')"></div>

 

You were missing a closing quote on the onclick attribute, and you can't use double quotes inside of double quotes.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.