I'm looking at creating a list of links that when each one is clicked, opens a new window/tab under the current window, the reason for this is that i'm using jQuery .toggle to switch content upon click of a link to reveal a message. They have to read this message before going to the new window, which is why it must be opened below the current window (Hope all that makes sense!).
I've got the content switching part done, which is great, but having some trouble coding the "New Window opening under the current window"
Thw following code (When used with jQuery) opens up a new window under the current window (Yay!) - BUT - this happens on page load simply apply it to the links, and only apply it to link with a certain class e.g. class="newwindow"
Code: $(document).ready(function() { var link = $(this).attr('href'); var mer_window = window.open(link, '_blank', 'toolbar=1,location=1,directories=1,scrollbars=1,resizable=1,status=1,menubar=1'); if (typeof mer_window === "object")
so I've got this page with the following iframe: <iframe src="http://test.page.local/promo/" height="350" width="214" frameborder="0" scrolling="no"></iframe> And within the framed page, a list of links, a sample of which looks like this: <li><a href="http://www.test.com/johnny-be-good/" target="_blank">Johnny's been good</a></li> yet when I click the links, the page loads within the iframe. The target is set to open a new tab or window, yet the links refuse to do so. I've tried _blank, _top, _parent, and resorted to hijacking the links with JavaScript (which seems to me to be overkill) and nothing works. I know this can't be hard, but its driving me nuts.
I am not familiar with Javascript and I need to open a link in a drop down menu in a new window. Below is the script that exists now that opens the links in the same window.
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.
Tabs jQuery v2.7.4 of stilbuero. I want to use Ajax Mode and open the links in a specifically container. For example: <div id="box"> <ul id="tabs"> <li><a href="01.html"><span>Tab one</span></a></li> <li><a href="02.html"><span>Tab two</span></a></li> <li><a href="03.html"><span>Tab three</span></a></li> </ul></div> ... <div id="container"></div><!-- Open external links here (01.html, 02.html and 03.html) -->
I found a script for drop down menus on the web. I use it on my homepage (www.k66t6-mf.com). The script works fine. However when you click on the links the pages open in a new tab or window. I do not want this. Does anyone know how I can prevent this from happening? (I know there is a lot of code, and I'm sorry about that).
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.
I've been trying to edit this script but it continues to open my slideshow images into new tabs. I would like that the images on the slideshows when clicked they will open in the same tab. How can I do that? Here is the script I am using
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. Below is a section of the code I plan to use:
Code: <script> var arrValues = ["red", "orange", "yellow", "green", "blue", "indigo", "violet", "brown"]; </script></head><body> <h2>Autocomplete Textbox Example</h2> <p>Type in a color in lowercase:<br /> <input type="text" value="" id="txt1" onkeypress="return autocomplete(this, event, arrValues)" /></p> </body> </html>
How to modify this to: 1) Link the text entered to the document I want opened 2) Open this document upon 'enter' pressed
I have url links in an Access Database which open different info screens depending on the record. I want to include some code in the html which isn't blocked by browsers, but restricts the html code to an initial window of approx 800x600, but can be resized, but importantly the database screen doesn't 'get lost' underneath the browser window.
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.
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 ?
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.
I'm having trouble doing an image replace. When you click on the thumbnail link to replace the large image, it opens in a new window instead of replacing the current image.
My current project has me working with UI dialog and I was wondering if it's possible to open a new browser window from a click of the dialog button. I have set up an ajax call to get the url but I'm not sure if this is the correct way.
function createNewProject(irb_id){ jQuery.ui.dialog.defaults.bgiframe = true; jQuery(function(){ jQuery('#confirmDialog').dialog({
I need to create a new browser window when we click on a button, as we do with window.open() in javascript. I was using that initially, but I was unable to set title of the html page and hide the addressbar and statusbar using it, I tried many things. but its not working in mozilla. I know that mozilla forces the default settings. Is their any way in jquery to both this things.
Here is what I am trying to do in javascript var width = 600; var height = 500; var left = parseInt((screen.availWidth/2) - (width/2)); var top = parseInt((screen.availHeight/2) - (height/2)); var winProperty = "width=" + width + ",height=" + height + ",left=" + left + ",top=" + top + "screenX=" + left + ",screenY=" + top+ ",location=no,status=no"; mywindow = window.open('help/help1.html','Window title',winProperty) ; });
I need to to open a survey page to users who has not anwseredthe survey yet.The survey is in the same domain / path than the main page.If users has allredy anwsered the survey, the page opens with title "Error" and there is error message in the body.I can open the new window from the main page, but I do not know if it is possible to read the title or document content of the new window.I can not edit the survey page to put code there.f I could determine with an if question, did the survey page open to the survey or the error page,then I could close the page or close the main page to bring the survey on top.Is this possible to do?
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">
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.
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.
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.