Opening Link In Parent Window From Pop Up
Sep 24, 2001
I need to have a link open in the parent window after opeining one on my site.
What the user does, is he/she clicks a link in their browser. that intern opens another window with a input field and a submit button. after they hit submit, i want the next page to load in the window they first clicked the link for the pop up.
how would i do this?
View 22 Replies
ADVERTISEMENT
Jul 20, 2005
From my web page I open another link in another browser window. That
new window is composed of two frames. I have a <a
href="....."> link on the second frame of that window. What I want is
that when user clicks on the link in the new window's second frame,
the response should open in the original browser window that opened
this secondary window(which is made of two frames). How can I do it?I
hope i have explained my problem.
I tried to used window.opened.location.href but it didnt work because
I have frames in my secondary window...
View 3 Replies
View Related
Jul 21, 2011
I have a site where one of the links I have set up to open a pop up window which will display Terms & Agreement information, at the bottom there is a check box and a submit button for users to click on if they agree to the terms. I was able to get that working but the thing is when the user clicks in the check box and hits submit I want them to be directed to a page which has a form on it but I wanted the page to open in the original (Parent) window. This is where I am lost cause I found some coding which will open the page with the form in the pop up window but Ideally once they agree to terms and hit submit I'd like the pop up window to disappear and the new page open in the Parent window... is this possible below is the coding I'm using.
Here is the form:
<form method="get" action="this is where my link will go" onsubmit="return yes_no(this.form) " name="Agree">
<INPUT name="agree" name="agree" value="agree" type="checkbox"> I agree to terms
<input type="submit" name="submit" value="Accept Terms">
[Code].....
View 1 Replies
View Related
Jul 22, 2011
I am having difficulty in opening a link in an Iframe. If I explain, I have four pages
-Page 1 containing the Iframe
-Page 2 containing a series of thumbnails that opens in Iframe on page 1
-Page 3 is the larger image that opens in the Iframe on page 1 after clicking the thumbnail on page 2
-Page 4 is a page with a linking menu that has a link to page 3
The task I am struggling with is to get the link on page 4 to open the larger image of page 3 in the Iframe on page 1. Now I maybe doing something wrong but the code is opening page 2 in the Iframe on page 1. Below are the links to the pages in question.
Page 1 Art for Sale - Bertram Enterprises
Page 2 Bertram Enterprises Collection_Ver2
Page 3 [URL]
Page 4 Jenni Dutton - Bertram Enterprises link near bottom of page - Art for Sale
I wish to use this on many more of the images.
View 7 Replies
View Related
Jan 29, 2010
I have a HTML and I am opening another link in a separate window using window.open() . The child window is something like 'http://yahoo.com' which is out side html. I need to refresh the parent window when the child window is closed.
View 4 Replies
View Related
Jul 10, 2006
Opening a link in the browser has to open a new window with same url content (url cannot be hardcoded)
and the opened window must close the parent window and should not have any of the status bar,url bar or menu bar.
I have written this code in a html page in the body onload event
var WIN_WIDTH = 700;
var WIN_HEIGHT = 500;
var MENUBAR_HEIGHT = 10;
var TOOLBAR_HEIGHT = 50;
var STARTUPBAR_HEIGHT = 10;
var heightOfBars = MENUBAR_HEIGHT + TOOLBAR_HEIGHT + STARTUPBAR_HEIGHT;
var xPos = (screen.width/2) - (WIN_WIDTH/2);
var yPos = (screen.height/2) - (WIN_HEIGHT/2) - heightOfBars;
var prop='menubar=no,scrollbars=no,status=no,locationbar=no,'+'toolbar=no,resizable=yes,width='+WIN_WIDT H+',height='+WIN_HEIGHT + ',left='+xPos+',top='+ yPos;
window.open (location.href,'EKMIS',prop);
//closes parent window without any confirmation
window.opener.opener=''
opener.window.close();
But the problem is opened window goes into unending loop..
View 5 Replies
View Related
Nov 11, 2003
I have a button called LOOKUP, which when clicked calls a client side function that increments the nLookUp by 1 and then should open the target URL in new window. How can i accomplist this from cllient side scripting?
<script language="javascript">
<!--
var nLookUp = 0
[code].....
View 5 Replies
View Related
Feb 28, 2002
I'm building a program for webmasters, and I need to have it so that I can have an <INPUT> button that, when clicked, will open up a new window (400x350 pixels) with a list of links. However, when the person clicks one of those links, the window closes, the value of an <input type="text" name="parentdoc" size="8" maxlength="8" readonly> is updated.
How would I accomplish this?
(As I mentioned above, I am very new to JavaScript, so please provide as much explanation and code as possible.)
View 6 Replies
View Related
Jul 23, 2005
I create a new page and write to it. There is an anchor in the
new page so that users can easily navigate to the bottom. In
IE, it works fine. In Firefox, it loads the parent page into the
new page....
View 1 Replies
View Related
Nov 24, 2010
Instead of using window.open, which I understand opens a new window, is there a code that will make the link open in the parent window?
View 7 Replies
View Related
Jan 8, 2004
I have a popup window which has the search form in. What I want to do is for the popup window to close once the form is submitted, and to post the form data to a page on the main window.
Is anyone able to advise. As the main page is dynamic, it is not possible to give the page a name.
View 4 Replies
View Related
Apr 25, 2011
code to show ( overlay / modal window ) to the user when closing or navigating away from the page ( i want put in this window facebook share to make the user to share the page in his facebook ) , bytheway i wanna use it in my wordpress in every post could it be happen ?
View 1 Replies
View Related
Jul 20, 2005
I'm using window.open and as soon as I click on the link to open the new window, my original page content is replaced with '[object]'.
<
href="javascript:onClick=window.open('leaving.htm','','t oolbar=no,location=no,status=no,menubar=no,scrollb ars=no,resizable=no,width=300,height=400')">Lin
1 </a>
Any ideas ...
View 1 Replies
View Related
Feb 2, 2011
I am looking to have a link open a closeable window that is contained within a browser window. If you click on the "sizing charts" link on this website, this is exactly what I am looking to do:
[URL]
The window is contained within the current browser window, it can be dragged around, but not outside the parameters of the browser window.
View 2 Replies
View Related
Jan 17, 2010
ok so here what i want to do:
i want a dropdown menu
i want a button (go)
i want ten different items in the dropdown menu
if i choose the first item and click go i want a new page to open in the same window
if i choose the second item and click go i want to a different page to open in the same window and so on
all ten items lead to a different link when i click go....how do i do this?
View 3 Replies
View Related
Sep 27, 2003
I want one link to open two pages inside two imageframes (just to make it easier).
View 4 Replies
View Related
Dec 30, 2009
I am trying to make a script that would open a link every xx randomly seconds.
So far I have come up with this after searching:
<script>
function reloadMe() {
window.location.reload();
}
[Code].....
This works on refreashing a page every xx seconds between 30 and 60 seconds. But it does not open a link.
Is it possible to make a script that opens a link every xx seconds at random. It would be even greater if it can exclude certian times of the day, or can that be done with a cron job?
View 3 Replies
View Related
Jan 11, 2010
Anyways, I use the Jquery UI Tabs plugin for navigation within a page on my website. I have two tabs on this page and I would like to have one image at the bottom of the first tab content that just simply opens the second tabbed content. I read this wiki on the documentation section of the plugin page:
..select a tab from a text link instead of clicking a tab itself var $tabs = $('#example').tabs();
// first tab selected $('#my-text-link').click(function() {
// bind click event to link $tabs.tabs('select', 2);
// switch to third tab return false; });
This is the code that I have for the image (it also uses a simple javascript image hover effect on it as well)
<a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('consultation','','../weddings/pagegraphics/consult_b.png',1)"><span><img src="../weddings/pagegraphics/consult_a.gif" alt="set up a consultation now" name="consultation" width="293" height="36" border="0" id="consultation" align="right" /></span></a>
So when I read the the above wiki, i assumed that you put it in head like this:
$(function(){
/* $('#tab-me').tabs(); */
$('#tabmain').tabs(4, { fxFade: true, fxAutoHeight: true});
$('.scroll-paneMap').jScrollPane();
var $tabs = $('#tab1').tabs(); // first tab selected
$('#consultation').click(function() { // bind click event to link
$tabs.tabs('select', 2); // switch to third tab
return false;
});
Where I used the id of the image as the first "blind click event to link" and the name of the first tab that is opened when you view the page as "tab1" and the name/id of the tab that I would like to open on click is tab2. This is my basic code setup:
<div id="tab1" class="tabContent">
<div class="scroll-paneContact">
MAIN CONTENT GOES HERE
<a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('consultation','','../weddings/pagegraphics/consult_b.png',1)"><span><img src="../weddings/pagegraphics/consult_a.gif" alt="set up a consultation now" name="consultation" width="293" height="36" border="0" id="consultation" align="right" /></span></a>
</div><div>
<div id="tab2" class="tabContent">
<div class="scroll-paneContact" >
FORM TO LINK TO FROM TAB1 GOES HERE
</div></div>
View 10 Replies
View Related
Apr 14, 2009
I have a JS which I have already started to try to customise, but I am having some difficulty with it in that when I click on an image, it does not take me to my html page.with care.html. Although all files are in the same folder, I get an error indicating that the fille cannot be found (I have checked the file name spelling). I am not doing any of this online as the Web pages, when working, will be put on CDs.
View 7 Replies
View Related
Jul 23, 2005
I am using the following code to display an image in a seperate
window.
<form>
<input type=button
onClick='window.open("image1.jpg","","width=260,height=260,resizable=0,border=0")'
value=Shhow Picture'>
</form>
I want the window to be the exact size of the image so I set the width
and height of the window the same as the width & height of the image.
The code works, however there is a white border on the top and left
side of the image. If I add 20 to the width and height of the window
then there is a white border around the whole image.
Is there anyway to have the window the exact size of the image,
without this white border? I know there is probably a simple solution,
but I'm a beginner at JavaScript.
View 2 Replies
View Related
Sep 23, 2005
I have a form on a page and when the form is submitted it should open a
new window and post the content to it.
When the script being posted to is a html page, then this works fine,
but when the script being posted to produces an svg graphic, then there
is no 'view source'. Its almost as though the opened page headers are
already set for html and doesn't like the svg xml schema.
Here is the code:
document.report.action="graphic_rpt.cfm?RequestTimeout=700";
var mywin;
if ( !mywin || mywin.closed )
{
mywin =
window.open(mycgi,'view_report','width='+mywidth+' ,height=425,top=50,left=0,scrollbars=yes,toolbar=y es,resizable=yes');}
}
document.report.target = 'view_report'
document.report.method = 'post'
document.report.submit();
mywin.focus();
View 1 Replies
View Related
Aug 28, 2009
I am confused as to why a window will not open if i include certain code. if i use code...
View 8 Replies
View Related
Jul 13, 2011
is there a way in HTML or Javascript to open a new window and force it to be a new Window, not a new tab? and also avoid popup blockers??
View 7 Replies
View Related
May 8, 2001
I'm pretty poor at Javascript, but does anyone have any ideas on how I can get a new browser window to open behind the current window when it is opened.
View 7 Replies
View Related
Jun 25, 2010
Code that worked in IE6 for opening a new window (window.open) now, in IE8, REPLACES the window with that code, on the same tab.
and the HTML code <a href=... target="newWIn"> is ignored, but if I delete the "target=..." it too replaces the current tab contents.
How do I open a new window, or at least a new tab, in IE8?
View 4 Replies
View Related
Jul 23, 2005
I am trying to find out how to position an opening window in Internet
Explorer.
While in Netscape/Mozilla/Firefox exist the options screenX and screenY for
the open method of the window object, I couldn't find anything similar in
IE.
View 2 Replies
View Related