I am running a Javascript on WindowA which launches another window known as WindowB leading to an external site. Is there a Javascript that can determine if WindowB displays the text as "The List Is Too Long".
I m having a text data of around 6 page length in a text editor...I want to print dat data using window.print. For that i displayed dat data in a html page and used window.print(). Bt my client wants dat some line spaces shud be inserted first in the starting of the page and on the second page also...After that the printing shud be normal... How can i set the page in such a format...?
I need to insert some text (keywords) into a searchform of another window. I assume this is possible via the window.opener, but I would be grateful for some hints.
I'm trying to write a page that has a text input area for user input, what I'm trying to achieve but failing at, is to have a user enter their text into the text area, and then at the click of a link, open their text in a new window, with a few changes to their text which i figure I can do with CSS.
the code I've used is below and I know I'm missing a few bits, but I'm not too sure on how to implement them properly, one bit I'm missing out is the link that will be clicked, which will open the new window, but as said I'm sure on how to do it Code:
Now when this window is opened it shows some images. What I want to do is that when you click on the image the name of the image should go into a text field which is hidden in the original window (from which the popup opened) and the popup should get closed.
I'm trying to write a script that will take text from 2 fields in a form and convert them into a url that is then launched in a new window, via a button click. Here's what I have which obviously doesn't work!
<script> function convertURL() { var zip5 = document.getElementsByName( "zip5")[0]; var zip4 = document.getElementsByName( "zip4")[0]; var fullurl = document.getElementsByName( "fullurl")[0]; var urlparts = document.getElementsByName( "urlparts")[0]; [Code]....
I need to be able to copy text from one window's form to another windows form that is already open. I have a popup box which allows you to select something which I then want to alter something on the main form in the main window. What I need to know basically is how to refer to a window by name and from there drill down to the name of the form element.
Would there ever be any problems with the following script depending on what type of characters are in the text string? I am appending the value of hidden form field to the query string.
//Assume JavaScript enabled browsers and popups allowed....
The page I am opening is not mine. I want to edit the content of the page I am opening, adding text "This page is opened in a new window" as a first thing after the body tag of the opened page.
Is it possible to do it with javascript, while opening the page, or should I use Java?
I am building a web site and am trying to streamline the way the site works. I have a list of companies that each will have a link to a new page. What I want to do is make it open a single pop up for all companies. In this pop up there will be one image and a few lines of text. Therefore, when a viewer clicks on one company's link and then clicks on another it will load the second company's info in the same pop up. Code:
I am relatively new to JavaScript. I copied my coding below. I have the code doing everything I want except when I execute the function the text gets copied into a new window. What I would like is for the text from the forms to be copied into the same window that the form is on.
I have to create an editable text window. On this text window, there will 2 buttons "save" and "cancel". On clicking the "save" button the text in the window should be saved in a text file to a predefined directory. How can this be done using jquery.
The window.onresize is not called (in Mozilla) when changing the text size on the browser (crtl + or View/Text Zoom).
Is the xAddEventListener function usefull ? What does the "For some browsers the window.onscroll and window.onresize events are simulated." mean ?(found in the X Library function reference).
On my parent page I have a form with an input text field containing the value of a Customer name (pulled from a database). I also have an image link that, when clicked, will launch a popup window that performs a database lookup and displays all Customer names.
What I'm looking for is a javascript solution to do the following:
1. Each Customer name in the popup window be a hyperlink that, when clicked, will populate the Customer input text field on the parent page (thereby removing the text field's current contents).
I'm relatively new to javascript. I want to create an editable text window popup. Upon writing a free text the user should have an option to save or clear the text. He should be able to save the text in a predefined location locally. How can this be done in javascript.
Here is an example of a scrolling window and the codes about it:
[Code]...
I have some questions about it:
a)Can i move the text from top to the buttom?(which is the opposite from what it moves now). b)How can i make the text to move nonstop?In other words when it stops to start again. c)I have used the obj.style.left=pos in order to make the text move from left to right but i want it to move all horizontally in one line only.How could i do that?
I am very new to javascript and jquery. on my site i have a list of short quotes. right after each quote there is a hidden div which contains the complete text; by clicking a quote, i would like to open a popup-window which displays the complete text.
Is it possible to Copy data from a <input> box the the main windows (the input is opened in a pop-up). I've seen date-time pickers can do that, but can't find the function!
I'm having a problem with copying text into the # code window. When I select the code that I want to copy, after opening the code window, I can only paste the code line by line instead of pasting the entire block of code. I can copy the entire block into word/notepad. Is there a technical issue preventing this from working?
I have everything working accept the last part and I don't know what to do.function show() works and shows data entered in text box.function open_win() works,but I only need it to open when there is a input match say like the name Tom,otherwise I want function show() just to show the input.
Currently the new window opens every time the button is pressed needs to match input string only before window opens and then string print to window I think these two lines are the problems(whatever the input) document.getElementById('myDiv').innerHTML = string; And var bselect= "Tom" open_win(); I think I need to set var to the string printed to page to solve the last part. how to I get the blank window to the center of screen,as it covers the data in the function show.
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.