Possible To Open New Window Or Iframe And Pass In HTML?

Mar 29, 2002

I was just wondering two things about javascript:

1. Is it possible to open a new window and pass in some HTML code? For example:
Code:

window.open('<HTML><HEAD></HEAD<BODY>Hello World</BODY></HTML>', 'test_window', 'width=400,height=200');
2. Is it possible to pass in HTML code (using javascript) to an iframe window on the same page? I just want to update the text in the iframe. For example:
Code:

Some HTML code...
<iframe name="STATUS" src="" </iframe>

<script LANGUAGE=JavaScript>
document.write.iframe.STATUS('<HTML><HEAD></HEAD<BODY>Hello World</BODY></HTML>');
</script>

View 1 Replies


ADVERTISEMENT

Open A Popup Window From A PHP Site And Pass In Some Parameters To Use In The Pop Up Window

Sep 23, 2010

I need to open a popup window from a PHP site and pass in some parameters to use in the pop up window. I have the params in an input box and need to get the val of the box into a param and pass it to the new popup window. All pages are local and in the same folder. The id of the input box is 'ddutykey'. The name of the new window would be showduty.php if possible.

View 3 Replies View Related

Open New Window From IFrame?

Nov 26, 2009

I have a PARENT HTML page. Within it, there is an iFrame. Let us call page inside of iFrame is CHILD.I would like to following things:1. When click button in CHILD, A NEW full size page opens and mouse focus moves to NEW.I used following scripts:

function openFullWin(urlPara)
{ var windowFeatures = 'menubar=1,modal=0,resizable=1,scrollbars=1,status=1,toolbar=1,width=' + screen.availWidth

[code]....

View 1 Replies View Related

Open New Window Into Iframe?

Dec 16, 2009

force a page that always wants to open in a new window to open in an iframe?

I have several links on the same page with an iframe to the side, and i would like it for the pages to open in the iframe without ever leaving the main page, so the user could click a link and the page would appear, and the links are still on the side to be able to click a different one. I have it working right now on most pages, but there are a few pages (which i cannot modify the code) that are opening in new windows, and was curious if there was a way to force it into the frame?

View 3 Replies View Related

Open Iframe Links In Different Window?

Sep 5, 2011

I have implemented an iframe that contains several links to other pages. I can't change the content of the iframe because it's on another server.

Here you can see an example of the code for one link in the iframe:

<a href="javascript: void(0);" onclick="openUrl('http://www.streambeam.org');" title="">Link 1</a>

Now I would want those URL's to open in a new file, so I can add a frame on top that refers back to my own site.

Now my question is: Is this possible, without changing anything in the iframe?

View 1 Replies View Related

Open Link From Iframe In New Window ?

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

Pages Open In New Window Not Iframe?

Sep 19, 2009

My sites has a menu on the home page linking to a dozen other pages. My intention is to open those items into a main iframe also on the home page.

I have put the <base target="iframe" > in the <Head> area and all seems to work in Opera but Internet Explorer and Firefox will both open new windows instead of loading into the iframe.

Having said that. Links from WITHIN the iframe will open correctly in all browsers.

View 4 Replies View Related

JQuery : Pass Label Value - To Pop Window In Html

Oct 25, 2011

<table border="1" bgcolor="#C0C0C0" cellpadding="3" cellspacing="3"width="250">

I want to display value of label "word file.doc" etc in pop up window when i check checkbox and click on button.

View 2 Replies View Related

Window.open() To And HTML Anchor?

Apr 15, 2010

I have a site where I am using window.open to open up and HTML page to a certain anchor.This works on some computers and not on others. The javascript part works fine but it does not go to the specific anchor all of the time. The code is correct because it works on my computer all browsers. The anchors do not work on my clients. There are 50 or some small images that I am anchoring. Could it be a loading problem with those images?Here is the javascript that I am using....

Code:
function popOpen(URL){
window.open(URL, '', 'width=225, height=325, top=0, left=0, scrollbar=no, resize=no, menus=no');

[code]....

View 2 Replies View Related

Open The Index.html File With A Pop-up Window?

Jul 27, 2011

I have been working on this and cant figure it out.I have an index.html as my main file and I wanted to have a pop-up window that will also open together with the index file. the pop-up window is a notepad like type, file name is clipboard.html.Addon: i started adding code to have the pop-up to stay on the right side of the screen and always on top.

View 3 Replies View Related

Open SWF Files In Transparent Window Using Links In HTML Page?

May 13, 2011

I am trying to open some SWF videos from an HTML page. When the user clicks the link, I would like to have the videos open in a transparent window (not a separate browser wndow).

I have figured out how to embed the files and have them open in a transparent window as soon as you load/refresh the page but I want to open the SWF using a link.

View 4 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

Problem With Html Page Using Cached Page In Window.open(url) Call

Jul 20, 2005

I have an html page that uses javascript to open a new window and
display a file that gets created when a button is pressed.

My problem is when the file is changed and the display button is
pressed, the old file is still displaying. I have tried using

<META HTTP-EQUIV=expires CONTENT=0><META HTTP-EQUIV=PRAGMA CONTENT=NO-CACHE>, but doesn't work 100% of the time.

View 1 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

Child Window Close Event - Opening Another Link In A Separate Window Using Window.open()

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

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

Thru Window.open Open A Word Document In Print Preview Mode

Jul 23, 2005

Through window.open or window.showmodaldialog, I want to open a word
or excel document in Print Preview mode. Bcos I don't want the user to
make any changes or save it but the user can ONLY VIEW OR take a print
out.

View 1 Replies View Related

Window.Open In FireFox - Click Very Quickly - Multiple Windows Open

Nov 16, 2009

I'm using an <A> tag with an onclick event to open a window with JS (window.open)... In FIREFOX, if I click very quickly, multiple windows open. Not a problem in IE.

View 8 Replies View Related

Window.open - How To Open A Local File (xml) With Firefox

Apr 2, 2008

my file is located at c:AdminFiles.xml

i tried the following ways

window.open("c:/AdminFiles.xml",'HeavyXml');
window.open("c:AdminFiles.xml",'HeavyXml');
window.open("c:\AdminFiles.xml",'HeavyXml');

in the above i'm getting the following error: "Firefox doesn't know how to open this address, because the protocol (c) isnt associated with any program"

window.open("file:///c:\AdminFiles.xml",'HeavyXml');

the last attempt give to respond at all...

View 5 Replies View Related

Open A New Windows And Pass PHP Value To It?

Jul 31, 2009

In search_results.php I have a variable named $path which display something like: C:/documents/personal/home.doc

I would like to create a button that link to a new window which is going to display: C:/documents/personal/home.doc

Right now is being displayed in search_results.php like this: echo "<td align=left bgcolor=$bgcolor id='title'> <font face='Verdana' size='2'>$path</font></td>";

View 9 Replies View Related

Pass Array From Child Window To Parent Window?

Jun 22, 2009

My scenario is like this.

1. Click on button and pop up child window.

2. Select multiple checkbox and submit array which send back to parent window and value store in a hidden variable.

i manage to do pop up child window, pass textfield value to parent window. But it cant send php array to parent window. Please help. I'm not good in js. code...

View 3 Replies View Related

Pass Values For A Popup Window To Parent Window

Jan 19, 2003

how I can populate the value of an input field on a parent window from a selected item (of a form - listmenu) on a pop-up window? Basically, I need to pass the value of one form to another form located on a different page...

View 1 Replies View Related

Window.open() Doesn't Open New Window In FF, Only New Tab

Feb 14, 2011

window.open() doesn't open an entirely new window in FF3.6, just a new tab

Edit: Yeah, ok, so if i specify a size smaller than the current standard window, it'll be forced to open a new window. but what if i want a new standard sized window to open entirely?

View 4 Replies View Related

Pass 2 Values To Iframe

Jul 20, 2005

I have a list of images on the left side of the screen. On the right
side I have an iframe for the picture and some text to be displayed.
I can create individual pages for this, however I would rather create
dynamic pages for this. I would love to be able to have a link on the
left side that will send an image filename along with some text to the
iframe, so I don't have to create so many smaller files. Has anyone
done this?

View 1 Replies View Related

Pass Value To Iframe Src Attribute?

May 30, 2010

I just stucked somewhere in js, i know its simple task but i don't know what's wrong but i believe i just need little guidance to get my result.
Here is my problem

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

[Code]....

what i am trying to do on radio click 'YES' option i pass the value into querystring. Till now i got sucess to pass values but now problem is that how i pass this value into iframe src element.

I tried alot did lot of googling but didn't get anything yet.

View 14 Replies View Related







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