Don't Want Link To Open New Tab?
May 13, 2010
i'm running a slideshow and the first image is a link, but when i click on it, it opens the page in another tab.i want it to use the same window i'm already in and open the link there.
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1",
dimensions: [930, 68],
[code]....
View 3 Replies
ADVERTISEMENT
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
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
Oct 18, 2007
At my job we have computers that are set up with restricted rights. Firefox 2 is the default browser (good call), but for some reason a site that the user has to visit is IE only (yeah, wtf).
We have a webpage open with a link to that IE only site, now is there a way to open that link in IE from FF? We have full control over these machines, so we could install batch software or whatever it would take.
View 2 Replies
View Related
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 2 Replies
View Related
Feb 17, 2009
I want to make one link and If I click twice him (how to open in desktop my computer or my documents) do something and if i click him once do other something
View 2 Replies
View Related
Sep 19, 2009
I don't know anything about JavaScript but I found a really cool snippet I use a lot. It will randomize images and each image can open a new link. It looks like this [code]...
Now, my question is, can I link to open a document within an iFrame on my page?
Please don't tell me not to use iframes or whatever, I'm not a professional, just want to see if this works.
View 1 Replies
View Related
Aug 29, 2004
the idea below is based on the Sitepoint's article about New-Window Links in a Standards-Compliant World
The idea is not to use the rel attribute but rather check if the domain is different from the one to which the page belongs. Code:
View 2 Replies
View Related
Sep 6, 2010
how to make a code like this website (Samsung P1000 Galaxy Tab images ) there you can see the images when you click the image then the browser will open a new page, and when you click the image again the browser will close
View 1 Replies
View Related
Jul 28, 2010
How can I let link page open using IE? For example, I open a webpage using firefox or chrome/opera/safari. When I click the link, open the link using IE
<html xmlns="[URL]">
<head id="Head2" runat="server">
</head><body>
<a href="#" onClick="window.showModalDialog
('[URL]','','width=600,height=600','screenx=200','screeny=200')"><img src="images/benemanc-01th.jpg" alt="img-01" width="125" height="155" class="thumb" style="display:inline"></a>
</body></html>
View 3 Replies
View Related
Jul 23, 2005
I have a form that I would like to get the values entered on the page
and go to a new page in the same window. I can make the code work to
open a new window, but I need it to open in the same window. Here is what I have:
function pass_info() {
var info = "";
info += document.form2.productWeight.value;
window.open("/page/shippingrates/calculate_shipping_before.asp"
+ "?" + "weight=" + info,");
}
I know that it is the window.open, but I have not figured out what I
need to do to get it in the same window.
View 5 Replies
View Related
Jan 12, 2011
I have the following:
$(".buy_icon").click(function () {
window.location = "http://www.theuntappedsource.com/results.php?category=422"
});
Which opens the url in the current window when the icon is clicked.How would I open the url in a new tab?I should mention that I can't simply use an anchor tag.
View 2 Replies
View Related
Dec 21, 2009
The thing is that i got this script:
Easy script but when you click button it takes you the the URL but i want it in a new tab
View 12 Replies
View Related
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
Mar 31, 2011
Im a newbie when it comes to Javascript and trying to learn as I go along.
I am working on an internal work site. In the site I have a text box and on entering a specific code I want it to open a new page that links to a document that has the same name. ie. if user types red, I want it to find the document red.html in a folder. To make my colleagues job easier, I want the text box to autocomplete.
[Code]...
View 4 Replies
View Related
Jan 3, 2007
I am trying to open a document or window from
<a href="#" onclick="javascript: Open_Win();"><img src="images/Touching-God-Fast.jpg" alt="Touching God Fast" width="320" height="65" border="0"></a>
Where the function Open_Win() is:
function Open_Win()
{
window.open("http://www.xyz.org/Touching-God-Fast.html","Touching God Fast","scrollbars=yes, statusbar=yes, height=500, width=850");
}
Works great on a Mac but under IE in windows xp it states that there is an error on the page. What am I doing wrong?
View 1 Replies
View Related
Sep 11, 2011
I cannot write the small javascript, Before let me tell you, I am scriptkiddie in javascript and i dont have much knowledge of it. Here is my attempt, and i failed everytime.
Intention of Javascript code :- To Open link in new window, if clicked ok, else to open link in same tab.
<script type="text/javascript">
function show_confirm()
{
var awesome=confirm("Ok to Open Link in New tab, Cancel to open link in Same window!");
[Code].....
View 4 Replies
View Related
Sep 11, 2011
I want to open All external link, in iframe with the help of javascript. For E.g, My site is www.domain.com and I have made few post where it contains few external link, so, rather than opening the link in new window or in new tab or in parent page, i want to open link in iframe.
So that user remain in same page.
For an instance, "search box" of dreamincode.net.
View 5 Replies
View Related
Apr 12, 2009
The following is a simple javascript which loads a random image on page load with a corresponding link.
I just need to change it so that links clicked open in a new window.
Code:
View 6 Replies
View Related
Sep 14, 2009
I am trying to open my header links in a new window when they are in an iframe.
This function opens a new window when not in an iframe.
I have done tons of searching for a solution but nothing seems to work
I am using mootools as a frame work BTW.
Code:
View 2 Replies
View Related
Aug 5, 2010
I have used jquery modal window JS for creating Modal box. By clicking respective link modal Box opens in all the browser. But in Ie6 that behaves differently. In My webpage I have some Form controls, like( Input field, checkbox, Dropdownlist etc.) When I click the mentioned hyperlink the modal box opens in ie6 correctly but the Form controls operlaps the Modal box. Please check the attached screen. How to fix such issue for IE6.
View 1 Replies
View Related
Aug 23, 2011
Is there a way to open a link in a new window. That is presized? not a new tab, but a completely new window that would be set to like 600x800 for example? and at the same time pass this? The W3C Markup Validation Service
View 2 Replies
View Related
Feb 17, 2006
Here is the link that I am using to open the popup window. It works great except when the $id variable contains a single quote. I have the single quote escaped with a . What am I doing wrong?
<A
HREF='JavaScriptpenPopWin("friend.php?id=<?php echo $id ?>", 550, 400, , 5, 5)'>Tell a Friend</a>
So if the $id variable is productname, it works fine. But if it's product'sname, it stops the link at the slash.
View 1 Replies
View Related
Feb 1, 2010
This is my first post in this forum, sorry if im doring anything wrong. I want to add a javascript panel to my site... I have all the js and CSS code, and this works fine. But isnt it possible to do so when you press "Menu 1" then the panel opens+it links to a nother page... something like this <a href="index.php">Menu 1</a> ??
I have tried to code it myself for a few days now... And searched the net for ages, but cant find anything.
<ul id="menu">
<li>Menu 1
<ol>
<li><a href="#">Sub Item 1.1</a></li>
<li><a href="#">Sub Item 1.2</a></li>
[Code]...
View 1 Replies
View Related
Sep 11, 2010
I have a code like this to swop images in a menu:
Code:
<a href="javascript:staySet('btn-contact')""><img border="0" src='../images/btns-menu/btn-contact.png' id='btn-contact' onmouseover="SwapImage('btn-contact')" onmouseout="SwapImage('btn-contact')" alt='''.>
I need to create a onClick event which tells te link to open a html file <blabla.html> into a frameset name.
View 2 Replies
View Related
Jan 12, 2011
I am trying to tackle this problem: when I click on a link, the link show take me to another page and populate certain items (on the new page) in a form, such as a textbox and dropdown. I figured out how to populate the form using getElementById but I'm not sure how to open a link in the same window and bring those items to the new page. Below is the code I have so far:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
[code]....
The a href used to equal # previously as a test to make sure the function works (thats why I have the textbox on this page as well.The other page has the following code:
Code:
<form name="test"> <input id="info" type="text" /> </form>
View 2 Replies
View Related