473,508 Members | 2,133 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Simple Iframe & Form question

Hello!
I'm new to JavaScript.

I have a page "main.html" that contains a form named "form1" with a
text field named "text1".
the page "main.html" contains an iframe which source is another page
"page2.html".
I would like that when a html(<a href=... ... </a>) link contained in
"page2.html" is clicked, that the field "text1" is set to let's say
"hello there!".

How can this be done in Javascript?

Thanks in advance.

Arcadius.
Jul 20 '05 #1
1 1644
ah*****@sh.cvut.cz (Arcadius A.) wrote in message news:<c7**************************@posting.google. com>...
Hello!
I'm new to JavaScript.

I have a page "main.html" that contains a form named "form1" with a
text field named "text1".
the page "main.html" contains an iframe which source is another page
"page2.html".
I would like that when a html(<a href=... ... </a>) link contained in
"page2.html" is clicked, that the field "text1" is set to let's say
"hello there!".

How can this be done in Javascript?


I figured it out....
Thanks.

Arcadius.
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3360
by: dillon | last post by:
Hi everyone I'm writing a javascript/php chat script, but I've run into a problem that is probably very, very simple to fix but I don't have a clue. The problem is with an iframe (should I be...
4
7596
by: Thomas | last post by:
Hi there, I have an iframe which is editable (designMode = "on") and want to resize it dynamically as the content grows (e.g. more lines of text is in there) and there the struggle starts. I...
17
2614
by: Paul | last post by:
HI! I get an error with this code. <SCRIPT language="JavaScript"> If (ifp==""){ ifp="default.htm"} //--></SCRIPT> Basicly I want my iframe to have a default page if the user enters in...
15
20527
by: Aaron Gray | last post by:
<iframe name="iframe" width="100%" height="25%" src="test1.txt"> </iframe> <a href="test1.txt" target="input">one</a> <a href="test2.txt" target="input">two</a> <form name="form1"> <textarea...
6
1686
by: amerar | last post by:
Hi All, I have a form that uses Javascript to validate some fields. Whe the user selects to submit the form with certain values selected, I want to be able to execute a Perl script, query the...
21
6091
by: javainfo | last post by:
How can i refresh IFRAME and load data through AJAX?
1
1263
by: Simon | last post by:
A very simple question that is very hard to google..(so please be so kind to answer it, if you have the answer.) How can I reach an iframe, located in another frame. Situation: frameset of three...
3
5365
polymorphic
by: polymorphic | last post by:
I have succeeded in embedding PDF files in a dynamic iframe. The problem is that I need the PDF to cache. If the PDF remains the same from page load to page load then the pdf is somehow cached with...
1
7868
by: Hendrik Maryns | last post by:
Hi, I’ve read Jukka’s page about iframes and generally noted the advice not to use it, so I am looking for a proper way to handle this: http://www.weltladen-tuebingen.de/index_kontakt.html...
0
7225
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7124
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7046
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7498
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5629
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3195
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3182
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.