Open In New Window - Insert The Target="blank Tag But Can Not Seem To Get It To Work

Jan 21, 2010

I have a domain name registration field that links to a reseller storefront and then searches for that domain name. I would like the storefront to open in a new window, instead of the parent window. I have tried to insert the target="blank tag but can not seem to get it to work. Is there another way to make that window open? You can see the page and field here: [URL] The field is on the left side, just below the center of the page.

View 6 Replies


ADVERTISEMENT

Target Blank And Close Popup Window?

Sep 18, 2011

I have a popup window that has a "link" inside it, which needs to have a target=_blank but when ever clicked in IE, it stays inside the same window.I tried all of the following, none work

<a href='http://www.myurl.net' onclick='window.close();' target='_blank'>
<a href="http://www.myurl.net" target="_blank" onClick="javascript:window.close()">
<a href="http://www.myurl.net" target="_blank" onClick="javascript: setTimeout(window.close, 10);">

View 10 Replies View Related

List Menu Open Into Blank Window

Apr 27, 2010

I have this list menu that needs to pop open a blank window in front of the already open webpage. It also needs to work in IE and hopefully Firefox if possible.[code]

View 1 Replies View Related

Link To Page Using Target Blank & Linking Page's Window Location?

Feb 16, 2011

Basically, I have a link that should open the targeted link in a blank page, and upon the link being clicked, the original page's URL should be changed. The reason for this is that the user has to browse information on another website, and then pass the information on to me via a contact form, so rather than make them click back on my tab in the browser, and then find the "Contact" page link to fill in the form, I thought it would a good feature to simply go ahead and load the "Contact" page upon them clicking the link to the external page (which of course loads in a new tab). Here is the code I have in place:

Code JavaScript:
<a href="http://www.othersite.com/" target="_blank" onclick="window.location.href='http://www.mysite.com/contactus.php';">Other Site</a>

This all works fine on my computer, regardless of the browser that I use. One of my partners on this project called me this morning and said that the link was taking him directly to the "Contact" page without opening the "Other Site." This is strange because after I put this in place, I showed it to him and it worked fine. Now, a few days later, and it does not work. He said that he cleared his browser cache, history, cookies, etc. and the problem did not go away. He uses IE8. After he told me it was no longer working, I went to test it myself, and it works fine for me no matter which browser I use (IE8 or 9, Firefox 3 or 4 Beta).

why this might have worked one day and not the next? Is it simply a problem on his computer, or could it be an issue where based on what type of browser you are using, this won't work. Also, I know this is the JavaScript forum, but is there a way to do this in PHP without using the JavaScript onclick event? Obviously, I can't use the header() function since this functionality needs to be present on a link within text of a page.

View 2 Replies View Related

Target To Open In New Tab But Not Same Window

Oct 19, 2011

I have a few banners and forms that I wish to open in a new tab not the same window or a new window. I have tried the deprecated
target="_blank"
But even that opens a new window.

I have done some research on google and came up with CSS code:
form[target] {
target-name: new;
target-new: tab;
}

a[target] {
target-name: new;
target-new: tab;
}

This however does not work and opens in the same window. When using the CSS I remove the inline target.

View 1 Replies View Related

Open In New Browser Window (like With Target="_blank", Not Window.open)

Dec 1, 2011

Code: window.location but have it open in new browser window (like with target="_blank", not window.open)

View 7 Replies View Related

Target For Form To Open In Same Window

Jul 23, 2005

I just want my form target to be another page but open it in the same
window. Here is my code for the 2 pages : Code:

View 3 Replies View Related

Alarm Clock With Target Will Open In New Window

Apr 10, 2011

I have here codes for alarm clock but the thing is that I want the specified target URL to open in new window. If and only if I have a background with this programming maybe I could do it. I found this code from javascriptkit (credit to them)

<html>
<head>
<style type="text/css">
#jsalarmclock{
font-family: Tahoma;
font-weight: bold;
font-size: 12px;
} .....

View 3 Replies View Related

How To Get A Javascript Link To Open In A New Window Like Target=_blank?

Apr 12, 2007

Code:
<a href="#" onclick="window.location='http://YourSite.com'">click here</a>
I want to make it so that it opens a new normal browser window just like target=_blank does.

View 3 Replies View Related

Add A 'blank' Target To Any Links That Have 'external' Specified In The REL?

Mar 11, 2009

I am using a JavaScript to add a 'blank' target to any links that have 'external' specified in the REL. This is working great, but on some of the links, I need to give the user the ability to click the surrounding <li> item as well.

So my regular link looks like this:

<li><a rel="external" href="http://www.google.com">Google</a></li>
I need to figure out how to add the REL to the onclick in the LI
<li onclick="location.href='http://www.google.com/';"><a rel="external" href="http://www.google.com">Google</a></li>

[Code]...

I can't seem to find any instructions about how to insert this REL option....

View 6 Replies View Related

Target="_blank" Functionality - Target Page To Open It As Top Location From Within An Iframe

Mar 24, 2011

I am using the following javascript on the target page to open it as top location from within an iframe, which is working ok.

<script type="text/javascript">
if(self!=top) {
top.location.href=location.href
}
</script>

However my problem occurs when the user uses the browsers back arrow to return to the previous page, the script executes again returning them once more to the page they have come from. Is anyone aware of a work around to this problem as it would seem there isn't one? perhaps even a better solution for opening the target page from the iframe as top location. This is really causing confusion for users, and I really need to get the issue fixed.

View 2 Replies View Related

Window.open Does Not Work?

Jul 20, 2005

I've just installed Netscape 7.1 for Linux and the following script
refuses to open a window when I call this function:

function OpenLinkWindow() {

wMap=window.open('http://XXX.net/fo/ShowMap.php?id_advert=45&map=','','width=400,height=600');
wMap.onResize =
'self.location.href=http://naxos.orangeport.net/cyclades-info/ShowMap.php?id_advert=45&map='
wMap.focus();
self.close();
}

In other browsers (NS 7.0/Win98, IE6/Win98) and in Netscape 7.0 for
Linux, it works fine.

View 3 Replies View Related

Window.open Does Not Work In Mozilla

Jul 23, 2005

The following code used to popup a window when I used netscape 4.79.
Now I switched to mozilla 1.4 and the window doesn't popup.

function newWindow(newContent)
{
winContent =window.open(newContent,'nextWin','screenX=0,scree nY=20,width=600....);
winContent.focus();
}

....
<a href="javascript:newWindow('foo.html')"

View 3 Replies View Related

Window.open Not Work In Mozilla?

Oct 4, 2003

I am trying to use the following javascript function to open a new window. It works fine for IE browsers, but not Mozilla.

settings = 'height='+screen.height+',width='+screen.width+',top=0,left=0,scrollbars=yes,directories=no,location=yes,menubar=yes,resizable=yes,status=yes,toolbar=yes'
win = window.open(address, "newwindow", settings);
Am I doing something wrong or does Mozilla not support the window.open function? Or is it something in the settings thats breaking it?

View 9 Replies View Related

Window.Open Function Not Work In Google Chrome

Nov 16, 2010

I am really tired with Chrome, one of my window.open() Stuff work fine in FF and Opera in Fedora O.S. But Chrome Did not, my code is like:

Code:
<script type="text/javascript">
function getpage(id, type){
$.ajax({
type: "POST",
data: "key="+id,
async: false,
url: "<?php echo site_url(); ?>/server/precp/"+type,
success: function (msg) {
window.open("<?php echo site_url(); ?>/server/cplogin/"+msg, "autologin");
}});}
</script>

And it call in another JavaScript function like:
Code:
function doKeyup(id,e){
if(e == 13) {
var cp = $("table#serverdata tbody tr#container_tr.row_no td:nth-child(7) a#cp").html();
var dc = $("table#serverdata tbody tr#container_tr.row_no td:nth-child(7) a#dc").html();
if(cp != null || dc != null ) {
var firstId = $("table#serverdata tbody tr#container_tr.row_no td:nth-child(1) input[type=checkbox]").val();
}if(cp != null) {
alert("Enter here");
getpage(firstId,'cp');
return false;
}

And it firstly call from onkeyup as :
Code:
<input type="text" name="find_text0" id="find_text0" autocomplete="off" <?php if ('B' == $sb_pos) { ?> onfocus="document.getElementById('find_text1').value='';" <?php } ?> onkeyup = "return doKeyup('0',event.keyCode);" />

View 4 Replies View Related

<form> Target Won't Target Window

May 19, 2011

i want to submit form data from the popup window, close the popup, and load in the main window. problem is, it always opens a new 'tab'. i'm using google chrome, i didn't think to try this in

in the <head> of the 'main' window:
<script language='javascript' type='text/javascript'>
window.name='main';
</script>

[Code]....

View 4 Replies View Related

Window.open Launched From A Set Timeout - Script Doesn't Work With Google Chrome

Jul 14, 2010

Works fine with ie and firefox. All the script is there to do is open a new window but delayed so that users can see the button unpress.

[Code]....

This is my favourite way of doing things. The problem is that Chrome wont do a window.open launched from a set timeout. (buttons are an image background that shows just half of the image at a time) But its nerfed if i cant get it to work on 0.00005% of the browsers that visits the sites! (ive come to really dislike chrome)

View 6 Replies View Related

Hyperlink Not Present - No Link Specified It Will Open A Blank Page

Nov 8, 2011

In my .js file i am having one variable image2.

Here as there is no link specified it will open a blank page. guys can u please tell me how can i write a condition so that if my href is blank then it will not open any page. the click should not work or else it should load the same page.

View 1 Replies View Related

Open A Target URL Using An Image Link?

Feb 28, 2010

I have a php page which uses the following javascript code to open another page (The users profile page) and alos carry over the userID (dUid)

var userProfileUrl = chatProfileUrl+dUid.replace(/_/gi,"");
document.getElementById('userdetails').innerHTML += "<span class='userinfo' onClick="window.open('"+userProfileUrl+"','"+dUid+"')"><img id='profile' style='cursor:pointer;vertical-align:middle;padding-top:4px;' src=images/zoom.png> View Profile</span></br>";

I wanted to add to the menu another image link so I copied the same coding, but I do not know where to place the URL target that I want opened. I know I want the userID (dUid) also to follow this link as well. If I want the coding below to act in the same manner as the coding above, but instead open a page called /gift.php, where do I set the Url?

document.getElementById('userdetails').innerHTML += "<span class='userinfo' onClick="window.open('"+userProfileUrl+"','"+dUid+"')"><img id='profile' style='cursor:pointer;vertical-align:middle;padding-top:4px;' src=images/gift.png> Send Gift</span></br>";

View 2 Replies View Related

JQuery :: Alert Is Blank / Why Won't This Work?

Aug 20, 2010

[code]...

The alert is blank. test.php definitely returns something.

View 1 Replies View Related

Jquery :: Create Some Links With Window.open Method - When I Alert What Is Being Built, The Links Don't Work?

Mar 10, 2010

I'm using jquery/ajax to create some links with window.open method. Here's the relevant code:

$("#content").empty();
$.ajax({
type: "GET",[code]..........

Basically, when you click a link a function is called with a parameter based on the particular link you run. Then the code runs through an xml file, and if the parent of the nodes I've cyling through has a value equal to the parameter past to the function, that node is used to create a new link with window.open function attached to it.It all works, or seems to, and when I alert what is being built, it looks right to me, yet the links don't work.I've attached a copy of one of the alerts of one of the links as it's built.

View 5 Replies View Related

Window.open(... "fullscreen=yes" ...) Doesn't Work Any More

Jul 23, 2005

Can someone clue me in on this? I just noticed that following doesn't work as it used to:

window.open(... "fullscreen=yes" ...)

Used to get a window that occupied the whole screen; now I get thetitle bar and status bar too.

View 10 Replies View Related

Code - Void Window.open - Link Would Open In The Same Window?

Feb 7, 2009

I have this piece of code which is opening link in new window:

How to change this code so link would open in the same window?

Probably I should change this part: javascript:void window.open

View 1 Replies View Related

Write To A Blank Window?

Mar 9, 2011

I have this code and was trying to modify and not sure what i got wrong..

Getting error object expected ")"????

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Page title</title>

[Code]....

View 2 Replies View Related

Links That Uses Window.open Then Open A New Designated Window

Jan 17, 2012

I have a problem on the links on my page im working.sorry guys still a noob and my english is not that good. :b. my question is like i have a list of packages of food. [link_a] [link_b] [link_c] and i have a function that i put in my head tag:

function linkA()
{
window.open('link_a.html','link','width=300,height=200,resizable=yes');
}

now i can go to linka.html by click my link <A HREF="javascript:linkA()" >link a</A> is there a way i can have one functions that can open a link depend on what page .when it clicks then go to its designated page or i have to stick on writing function for linkB ,C,D and so on.

View 7 Replies View Related

Open A Link On The Same Window Using Window.open Or Any Other Method?

Oct 19, 2011

How to open a link on the same window using window.open or any other method in JavaScript.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved