473,383 Members | 1,877 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

displaying a page from an iframe

Hello.
I have a page called page4.html that contains an iframe called
ifrm_20. In this iframe, I added page35.html that contains a button
that checks a password and executes this script:
if( form.elements['PASSWORD'].value== password) {.......}.
What must I write instead of ...... so that a page called Page36.html
is diplayed in the same frame as Page4.html when I press the button?
I don't know javascript very well. Thank you for your answers.
Jun 27 '08 #1
3 957
On Apr 15, 7:21*am, jcd.n...@club-internet.fr wrote:
Hello.
I have a page called page4.html that contains an iframe called
ifrm_20. In this iframe, I added page35.html that contains a button
that checks a password and executes this script:
if( form.elements['PASSWORD'].value== password) {.......}.
What must I write instead of ...... so that a page called Page36.html
is diplayed in the same frame as Page4.html when I press the button?
I don't know javascript very well. Thank you for your answers.
I hope I understand your question correctly...

document.location = 'Page36.html';

Jun 27 '08 #2
On Apr 15, 7:21 am, jcd.n...@club-internet.fr wrote:
Hello.
I have a page called page4.html that contains an iframe called
ifrm_20. In this iframe, I added page35.html that contains a button
that checks a password and executes this script:
if( form.elements['PASSWORD'].value== password) {.......}.
What must I write instead of ...... so that a page called Page36.html
is diplayed in the same frame as Page4.html when I press the button?
I don't know javascript very well. Thank you for your answers.
<input type="button" onclick="window.top.location='page36.html'"
value='Click Me!' />

Once you become a bit more proficient with Javascript I would
encourage you to read up on AJAX techiques you could use instead.

Bernie
Jun 27 '08 #3
On 15 avr, 15:19, blechler <lech...@gmail.comwrote:
On Apr 15, 7:21 am, jcd.n...@club-internet.fr wrote:
Hello.
I have a page called page4.html that contains an iframe called
ifrm_20. In this iframe, I added page35.html that contains a button
that checks a password and executes this script:
if( form.elements['PASSWORD'].value== password) {.......}.
What must I write instead of ...... so that a page called Page36.html
is diplayed in the same frame as Page4.html when I press the button?
I don't know javascript very well. Thank you for your answers.

<input type="button" onclick="window.top.location='page36.html'"
value='Click Me!' />

Once you become a bit more proficient with Javascript I would
encourage you to read up on AJAX techiques you could use instead.

Bernie
It works. Thank you very much.
Jun 27 '08 #4

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

Similar topics

1
by: Adrian | last post by:
Hi I want to insert a html page within a cell of a table on an html page. I did this by using an Iframe and it works but not on first load! Each time I go to the page cold I need to hit refresh...
2
by: Carole MacDonald | last post by:
There have been lots of posts on this topic, but I haven't been able to apply any of the suggestions to my situation. I have an .aspx page with a form on it that has several submit buttons on...
1
by: Jesse Liberty | last post by:
Hi. I'd like to create an xml document on the fly and then display it in an asp.net page. I can use an iframe and point to a URL (which displays perfectly), but I'd not like to save the xml to...
0
by: csgraham74 | last post by:
I have created a web page(.aspx) that displays a .pfd page in an iframe. It does this by building a string of html and then executing this at a certain point. This code works fine on my development...
1
by: j7.henry | last post by:
I am trying to pull specific data that is in a comma delimited file into a web page. So if my comma delimited file looks like: Name,Address,Zip Fred,123 Elm,66666 Mike,23 Jump,11111 I would...
18
by: Mark | last post by:
Hello. I am looking for a way to download and cache a web page that the user has not yet requested, and write the web page to the browser cache without displaying it. My intention is to improve...
9
by: =?Utf-8?B?TWF0dE0=?= | last post by:
Is there a way to display/render an ASP page inside of an ASPX page with ASP ..Net 2.0? I'm not trying to back into frames but I have an application that will allow me to customize complex rendered...
0
Screaming Eagle
by: Screaming Eagle | last post by:
Ok, so some associates and I are building a website, and I'm in charge of the design and layout. I've decided to go with a simple navigation bar on top contained in its own div. Under the navigation...
4
by: raymon | last post by:
Hi, I have a page with two iframes that load content from another website. Only one of the iframes is shown at a time, depending on which tab the user is viewing. If user clicks on tab A, he will...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.