www.webdeveloper.com
Results 1 to 3 of 3

Thread: Link Opening "Blank" Window, But Want Link to Open in "Self"

  1. #1
    Join Date
    Oct 2009
    Posts
    44

    Link Opening "Blank" Window, But Want Link to Open in "Self"

    Can anyone please help me fix the hyperlink in my Wordpress header.php file?

    Currently, the hyperlink opens a brand new window; however, I want it to open in the same window:

    Code:
    <div class="ad ommaleft">
    <a href="http://www.funnydummy.com/buy-tickets/" target="_same">
    	
        	<img src="http://www.funnydummy.com/wp-content/uploads/2014/07/back.png" alt="Back Image">
        </a>
    
    
    </div>
    Here's the Webpage: http://www.funnydummy.com

    Your help is GREATLY APPRECIATED.

  2. #2
    Join Date
    Oct 2013
    Posts
    484
    target="_same" looks for a window (or frame) with the name "_same" or creates it.

    target="_self" opens in the same window/frame. Better yet, removing the target= attribute will open the link in the same window and is default browser behavior.

    http://www.w3schools.com/tags/att_a_target.asp
    Last edited by Kevin2; 07-29-2014 at 04:55 PM.

  3. #3
    Join Date
    Oct 2009
    Posts
    44
    Thank you, @Kevin2

    I went with your target= solution - perfect!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles