displaying a page from an iframe

J

jcd.news

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.
 
T

Tom Cole

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';
 
B

blechler

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
 
J

jcd.news

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,143
Messages
2,570,822
Members
47,368
Latest member
michaelsmithh

Latest Threads

Top