Forums

[resolved] Braindead. Target Question. (3 posts)

  1. khlota
    Member
    Posted 2 years ago #

    Where in this line of code could I add target="_new"?

    <div id="socialmedia" class="facebook" onclick="location.href='http://facebook.com/';" style="cursor: pointer;"><img src="images/smicon-blank.png"/></div>
  2. apljdi
    Member
    Posted 2 years ago #

    Look into javascript's window.open. This is untested but I'm pretty sure this is at least close.

    onClick="window.open('http://facebook.com/','mywindow')"

  3. khlota
    Member
    Posted 2 years ago #

    THANKS.

Topic Closed

This topic has been closed to new replies.

About this Topic