Solved

From inside a frame scroll parent document to top.

Posted on 2006-11-30
10
203 Views
Last Modified: 2012-06-27
I need a way to click a button inside an iframe to scroll parent the document to top.
0
Comment
Question by:mnb93
  • 7
  • 3
10 Comments
 
LVL 54

Accepted Solution

by:
b0lsc0tt earned 500 total points
ID: 18051712
mnb93,

Does the page have a named anchor?  If so you can try ...

parent.window.location.href="#name";

Let me know if you have any questions or need more information.

b0lsc0tt
0
 
LVL 5

Author Comment

by:mnb93
ID: 18051780
no, but how can I make one?
0
 
LVL 5

Author Comment

by:mnb93
ID: 18051810
<a name="asdadas"></a>

?
0
 
LVL 5

Author Comment

by:mnb93
ID: 18051819
parent.window.location.href="#name";
 that is like a framebreaker, sorry not what I want.
0
 
LVL 5

Author Comment

by:mnb93
ID: 18051833
parent.document.getElementById('name').scrollIntoView(true);
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 5

Author Comment

by:mnb93
ID: 18051834
That is the answer
0
 
LVL 54

Expert Comment

by:b0lsc0tt
ID: 18054993
mnb93,

If that is the answer then you should not have closed this by accepting my comment, even with a C grade.  I will post to Community Support and ask them to correct this.  They can refund your points and either close it by accepting the answer you posted or delete the question.  Let me know if you have any questions.

bol
0
 
LVL 5

Author Comment

by:mnb93
ID: 18056985
But you helped me figure out the answer.
0
 
LVL 5

Author Comment

by:mnb93
ID: 18056986
Without your idea, I still wouldn't have the answer.
0
 
LVL 54

Expert Comment

by:b0lsc0tt
ID: 18057101
OK, I can respect that.  The C grade made me think I wasn't any help.  I'm glad that I was able to help you and the problem is fixed.  Thanks for the fun question.

bol
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
using js script I am trying to create a folder and copy a file 7 30
alert before form submission 6 27
Google Sheets Script 21 50
Check if Object property exists? 3 18
Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

948 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now